Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Variable Decleration
I tried "DIM A$ AS STRING" which produced an error.
1) How do you initalize/define a string variable? 2) What is the proper way to initalize all other types of variables? 3) Does VBA really restrict things to integers, bytes, boolean expressions, etc, or are they still variants? Thanks in advance, Christmas May |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Variable Decleration
Here is everything you ever wanted to know about delcaring variables...
http://www.cpearson.com/excel/variables.htm You will run into difficulty because of the use of the $ sign... dim a as string or dim a$ Either of which will declare a string. -- HTH... Jim Thomlinson "Christmas May" wrote: I tried "DIM A$ AS STRING" which produced an error. 1) How do you initalize/define a string variable? 2) What is the proper way to initalize all other types of variables? 3) Does VBA really restrict things to integers, bytes, boolean expressions, etc, or are they still variants? Thanks in advance, Christmas May |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Variable Decleration
Mr. Jim Thomlinson,
1) Thanks for the link! 2) Thanks for the assistance with string variables. (Darn Quickbasic 4.0 habits) 3) I'm considering this matter closed, unless someone else wishes to add commentary. Sincerely, Christmas May "Jim Thomlinson" wrote: Here is everything you ever wanted to know about delcaring variables... http://www.cpearson.com/excel/variables.htm You will run into difficulty because of the use of the $ sign... dim a as string or dim a$ Either of which will declare a string. -- HTH... Jim Thomlinson "Christmas May" wrote: I tried "DIM A$ AS STRING" which produced an error. 1) How do you initalize/define a string variable? 2) What is the proper way to initalize all other types of variables? 3) Does VBA really restrict things to integers, bytes, boolean expressions, etc, or are they still variants? Thanks in advance, Christmas May |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Run-Time error '91': Object variable of With block variable not set | Excel Programming | |||
variable height variable width stacked bar charts | Charts and Charting in Excel | |||
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? | Excel Worksheet Functions | |||
Run-time error '91': "Object variable or With block variable not set | Excel Programming | |||
Cells.Find error Object variable or With block variable not set | Excel Programming |