Convert Userform input from text to number ???????

Jim Stewart

New Member
Joined
Oct 18, 2006
Messages
14
My userform takes the input and puts it into the proper cells. However, it is stored as text. Is there a way to convert it to a number prior to posting it in the cell????
If you can make this happen, I'll try to dance at your next wedding with cowbells on.
Jim
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi jim,
I should try moving the contents of the textbox to a variable declared as one of the numeric formats (eg Dim MyNumVar As Double) and then moving from the variable to the excel cell.

I think this should work.

Bye,
 
Upvote 0
Well, guess I'll have to dance at my own next wedding as I solved it myself. Simple place ".Value" after the input code. Hope others can use this.
 
Upvote 1

Forum statistics

Threads
1,215,819
Messages
6,127,047
Members
449,356
Latest member
tstapleton67

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top