tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,926
- Office Version
- 365
- 2019
- Platform
- Windows
It is safer to refer to worksheet codenames than worksheet names because users can easily change the name of a worksheet but not its codename, so I tend to write:
as opposed to:
Is there something similar for named ranges, ie I prefer NOT to write:
just in case the named range SomeName has been changed.
Thanks
Code:
wksData.Cells(1, 1).Value = 10
as opposed to:
Code:
Worksheets("Data").Cells(1, 1).Value = 10
Is there something similar for named ranges, ie I prefer NOT to write:
Code:
wksData.Range("SomeName").Value = 10
just in case the named range SomeName has been changed.
Thanks