Forum home » Delegate support and help forum » Microsoft VBA Training and help » Excel VBA variable type
Excel VBA variable type
Resolved · Medium Priority · Version 2003
Excel VBA variable type
I want to set a sheetname within an excel workbook as a variable but can't work out which type of variable it should be set as.For upcoming training course dates see: Pricing & availability
RE: Excel VBA variable type
Hi AnnaThanks for your question
I am assuming you are refering to the name of a worksheet, rather than the worksheet object itself.
A worksheet's name is always a string. This is because it is the worksheet's key property which is used to identify it.
Thus, your variable should be a string.
Regards
Stephen
Tue 2 Mar 2010: Automatically marked as resolved.
|
|
» Forum post: Name Ranges |



Course updates

