G
Guest
In a macro I have a string variable (macroName) that is set to the name of a
workbook. In the macro I am trying to retrieve information from the second
worksheet of that workbook while another workbook is active.
I have tried variations of the following syntax, but can't get either
statement below to work.
ColumnID = Workbooks(MacroName).Sheets(2).Cells(1, _ NumColsMacro).Address
NormalHomeRng = Workbooks(MacroName).Sheets(2) & "!$A$1"
Could someone please give me the correct syntax for these two lines?
TIA.
workbook. In the macro I am trying to retrieve information from the second
worksheet of that workbook while another workbook is active.
I have tried variations of the following syntax, but can't get either
statement below to work.
ColumnID = Workbooks(MacroName).Sheets(2).Cells(1, _ NumColsMacro).Address
NormalHomeRng = Workbooks(MacroName).Sheets(2) & "!$A$1"
Could someone please give me the correct syntax for these two lines?
TIA.