LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 470
Default Two VBA Questions

I see you reference INT, LNG, DBL in the conversion. This may be a mute
point (due to my ignorance), but the textboxes are not DIM. I assume since
they are "text"boxes that they will automatically be STRING.

Here are the the type numbers that some of the textboxes will hold:
120, 5500, 1, 39, etc. no decimal places on any numbers.
I also have a phone number that is pulled into a textbox from a cell as
(###) ###-####, then inserted into another cell on another sheet when user
has entered all data on userform. Other than the phone number, the other
numbers will be used in calcuations within the worksheet once placed in the
worksheet.

Les



"JLGWhiz" wrote:

For color chart: VBA Help search for "PatternColorIndex Property"

To coerce strings to numbers: (re VBA Help "Conversion Functions")

myNum = CInt(myString)

Or

myNum = CLng(myString)

Or

myNum = CDbl(myString)


"WLMPilot" wrote:

1) Where can I find a color chart with numeric values to referece so I can
use BACKCOLOR?

2) I have textboxes that will be accepting numbers. How do I convert the
textbox (string) to a number for placement in cell formated as number?

Thanks,
Les



 
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
Answers to questions posing more questions in a workbook sbelle1 Excel Worksheet Functions 2 August 8th 09 01:02 AM
View Questions and Answer to questions I created Roibn Taylor Excel Discussion (Misc queries) 4 July 24th 08 12:05 AM
A few questions please help! mjay123 New Users to Excel 4 February 8th 06 08:04 PM
several questions ksnapp[_11_] Excel Programming 8 February 28th 04 07:52 PM
Two VBA/SAP R/3 Questions Mark Bigelow Excel Programming 3 February 26th 04 12:02 AM


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

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

About Us

"It's about Microsoft Excel"