VBA Query to Excel, Stuck.

  • Thread starter Thread starter Hopest
  • Start date Start date
H

Hopest

Hi,

How do you copy the value from a TxtBox from a Userform to an Excel
Cell as a number not text?

So Txtbox value = 5

How do you make it so that Cell A1 = 5 but as a number not text.

Thanks
 
Yea that works but it puts the value of the textbox in the cell as Text
not a Number.

Reason I need it as a number is because I use the SUMIF formula and it
will not read the value of the cell if it is set as Text.
 
Sorry , sorted it now.

I forgot to put .value at the end of the textbox.

Works fine now :rolleyes: ahh well, we all make mistakes :)

Just glad it works now! :cool:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top