Hello,
I have a windows form with a text box to be filled in by the user with a number. The number is then written to the cell of an excel spread sheet. The cell on the spread sheet is formatted to display percent. The format is not transferring correctly. If the users types 1.75 into the textbox on the windows form, it shows up in the excel sheet as 175.00% How can I format this correctly.
There is a label on the windows form that is written to another cell on the worksheet also as a percentage and it works fine.
The code:
Thank you,
Steve
I have a windows form with a text box to be filled in by the user with a number. The number is then written to the cell of an excel spread sheet. The cell on the spread sheet is formatted to display percent. The format is not transferring correctly. If the users types 1.75 into the textbox on the windows form, it shows up in the excel sheet as 175.00% How can I format this correctly.
There is a label on the windows form that is written to another cell on the worksheet also as a percentage and it works fine.
The code:
VB.NET:
xlWorkSheet2.Cells(24, 6) = txtRoom.Text
xlWorkSheet2.Cells(25, 6) = lblPercent3.Text
Thank you,
Steve