Thread: Textbox format
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Oggy Oggy is offline
external usenet poster
 
Posts: 49
Default Textbox format

Hi

I have the following code to pick up infomation from the spreadsheet
and show it in my userform.


Dim text1 As Long

text1 = UserForm6.TextBox1.Value

Range("A4").Select
Set material1 = Selection

material1.Value = text1

If the number on the spreadsheet is to 2 decimal places the result is
rounded, ie 2.72 is shown as 3.

Any suggestions to resolve the problem will be gratfully recieved.

Regards

Oggy