Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have two open workbooks:
SPX-BS.xlsm and Book1.xlsm There is a cell named "premium" in SPX-BS which I need to access from a macro to post the value to Book1. If I enter manually 'SPX-BS.xlsm'!premium into a cell on Book1 it works fine. However if, within a macro I type Range("A7") = 'SPX-BS.xlsm'!premium I get an "Compile Error Syntax Error" message. Can someone please advise what I'm doing wrong? Many thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Referencing a named range based upon Range name entry in cell | Excel Worksheet Functions | |||
Referencing Named Ranges using values in a cell | Excel Discussion (Misc queries) | |||
Referencing cell in Named Range in Function VS Formula | Excel Programming | |||
referencing a sheet named in a cell then using data from that sheet | Excel Worksheet Functions | |||
VBA Referencing a Named Cell Range in another Workbook | Excel Programming |