Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Query to Excel, Stuck.


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


--
Hopest
------------------------------------------------------------------------
Hopest's Profile: http://www.excelforum.com/member.php...o&userid=23765
View this thread: http://www.excelforum.com/showthread...hreadid=377022

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Query to Excel, Stuck.


Hi,

try something like

Sheets("YourSheetName").Range("a1")=YourFormName.T extbox1.Tex

--
jindo
-----------------------------------------------------------------------
jindon's Profile: http://www.excelforum.com/member.php...fo&userid=1313
View this thread: http://www.excelforum.com/showthread.php?threadid=37702

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Query to Excel, Stuck.


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.


--
Hopest
------------------------------------------------------------------------
Hopest's Profile: http://www.excelforum.com/member.php...o&userid=23765
View this thread: http://www.excelforum.com/showthread...hreadid=377022

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Query to Excel, Stuck.


Sorry , sorted it now.

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

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

Just glad it works now!


--
Hopest
------------------------------------------------------------------------
Hopest's Profile: http://www.excelforum.com/member.php...o&userid=23765
View this thread: http://www.excelforum.com/showthread...hreadid=377022

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Excel Spreasheet stuck smiley54663 Excel Discussion (Misc queries) 2 September 8th 09 04:09 PM
Stuck With Excel Problem Jeremy Excel Discussion (Misc queries) 5 September 1st 09 02:30 PM
AutoCalc in Excel is stuck! LR Excel Discussion (Misc queries) 2 May 1st 08 05:59 PM
Excel with game is stuck in a loop [email protected] Excel Discussion (Misc queries) 2 December 19th 06 08:11 PM
Excel Concatenate - Please help, really stuck Dip Excel Discussion (Misc queries) 2 December 19th 05 06:30 AM


All times are GMT +1. The time now is 11:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"