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
 

Some videos you may like

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Anthony47

Well-known Member
Joined
Mar 29, 2006
Messages
1,853
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,
 

Jim Stewart

New Member
Joined
Oct 18, 2006
Messages
14
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.
 

amitsk77

New Member
Joined
Sep 4, 2015
Messages
19
Thanks Jim Stewart. I've been looking for this explanation for half an hour...thanks for posting this 10 years ago
 

Watch MrExcel Video

Forum statistics

Threads
1,109,348
Messages
5,528,184
Members
409,807
Latest member
nicky736

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top