View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Adam[_18_] Adam[_18_] is offline
external usenet poster
 
Posts: 10
Default Textbox's return a number?

Hi

I have a userform where users enter infomation into a textbox, upon
hitting an enter button my code puts the infomation into the
spreadsheet.

ActiveCell.Offset(0, 0).Value = UserForm1.TextBox1.Value

My problem is some of the infomation must be a number i.e. a quantity.

How can i change the code to accept only a number in certain
textboxes?

Thanks in advance