Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using stored variable in a formula
Hi. i have managed to store the active sheet name in a variable. how
do i use this variable in a formula? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using stored variable in a formula
Here is what the formula look like in the spreadsheet
=SUM(Sheet2!A1:A5) To generate this in VBA MySheetName = "Sheet2" Range("A1").formula = "=SUM(" & MySheetName & "!A1:A5)" "tc" wrote: Hi. i have managed to store the active sheet name in a variable. how do i use this variable in a formula? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using stored variable in a formula
What formula?
In article .com, tc wrote: Hi. i have managed to store the active sheet name in a variable. how do i use this variable in a formula? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Converting a Formula stored as String to real Formula | Excel Worksheet Functions | |||
Using value stored in cell in formula | Excel Worksheet Functions | |||
formula containing a formula-dependent variable - how? | New Users to Excel | |||
Run macro from name stored in variable? | Excel Programming | |||
variable stored in Excel - read only from VBA | Excel Programming |