TheRedCardinal
Board Regular
- Joined
- Jul 11, 2019
- Messages
- 243
- Office Version
- 365
- 2021
- Platform
- Windows
I have three named ranges in my main workbook that contains all my macros, RepMonth, RepYear and CoCode.
I have a series of other workbooks saved in a central location. As part of the macro, I open one of these workbooks, and copy over a specific sheet into my main workbook.
Contained in those individual workbooks are cells with basic formulae:
= RepMonth
= RepYear
= CoCode
Those names are not defined in the source sheets - so I get #Name error -which is fine (the sheets have no purpose until they are imported).
However when they move over, they still have the "#Name" error even though the specific named range is now present.
Do I need to apply a setting in the Workbooks.Open line to fix this?
Unlinked to this (or not?), Excel changed the formula to be =@RepMonth - the pop up tells me this shouldn't affect the outcome but maybe it has?
Any tips?
Thanks!
I have a series of other workbooks saved in a central location. As part of the macro, I open one of these workbooks, and copy over a specific sheet into my main workbook.
Contained in those individual workbooks are cells with basic formulae:
= RepMonth
= RepYear
= CoCode
Those names are not defined in the source sheets - so I get #Name error -which is fine (the sheets have no purpose until they are imported).
However when they move over, they still have the "#Name" error even though the specific named range is now present.
Do I need to apply a setting in the Workbooks.Open line to fix this?
Unlinked to this (or not?), Excel changed the formula to be =@RepMonth - the pop up tells me this shouldn't affect the outcome but maybe it has?
Any tips?
Thanks!