Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default VBA Variables as Strings

Is it possible to create a variable with the value being a String of a VBA
name?

Var1 = whatever

Var2 = "Var1"

I have data in my sheet with values identical to variable names in my code.
I thought this maybe one way I could reference or find those cells.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default VBA Variables as Strings

No, you can't, but perhaps you could create workbook names with that name
and store values in there.

--
__________________________________
HTH

Bob

"JeremyJ" wrote in message
...
Is it possible to create a variable with the value being a String of a VBA
name?

Var1 = whatever

Var2 = "Var1"

I have data in my sheet with values identical to variable names in my
code.
I thought this maybe one way I could reference or find those cells.



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
Variables & strings Tanya Excel Programming 2 March 9th 08 04:36 AM
Variables in Query Strings [email protected] Excel Programming 2 January 10th 08 07:37 PM
Assigning multiple text strings to variables buggy Excel Programming 0 January 5th 06 08:49 PM
substitute strings with variables banavas Excel Programming 2 June 4th 04 01:29 PM
Complex Text Strings|Variables cogent Excel Programming 4 April 8th 04 02:45 AM


All times are GMT +1. The time now is 11:19 PM.

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"