View Single Post
 
Old 04-14-2012, 08:42 AM
officeclerk officeclerk is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Apr 2012
Posts: 2
officeclerk is on a distinguished road
Default Number format in Textbox on userform

I have a basic userform with textboxes for data entry. Is it possible to format the data so when it goes to the spreadsheet, that it will stay in number format instead of changing the cell format to text?

This is what they currently look like.
Code:
 
Private Sub TextBox1_Change()
Sheets("Sheet1").Range("B25").Value = Me.TextBox1
End Sub
Can this be done by changing the textbox properties?

Thank you.
Reply With Quote