Unresolve. Cell contain named of a variable

Status
Not open for further replies.

mtheriault2000

Well-known Member
Joined
Oct 23, 2008
Messages
826
Hello again.

An un-resolved question http://www.mrexcel.com/forum/showthread.php?p=2802362&posted=1#post2802362 for me, So I will post it using another formulation

A cell contain the name of a declared variable to be read. How do i use the content of a cell as the name of a variable

EX:
variable:
Market = "Eur.Usd"
Scale = "3 Minutes"


Cell A1 = "Market"
Cell A2 = Scale

I want a string to be built using content of the variable name contained in cell A1 and contained in cell A2

String = Market & "," & Scale
String = "Eur.Usd,3 mintutes"

I want to use the value of a cell as the name of the variable to be read

If I inverese the value of cell A1 and A2 then the string will equal:
A1 = "Scale"
A2 = "Market"
String = "3 Minutes,Eur.Usd"

How do I use the text value of a cell as the name of a variable to be read. The text could represent the name of an Integer Variable also

Hope I'm clearer :)
Martin
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Status
Not open for further replies.

Forum statistics

Threads
1,224,586
Messages
6,179,726
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top