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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,214,827
Messages
6,121,803
Members
449,048
Latest member
greyangel23

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