Mashtonsmith1
New Member
- Joined
- May 16, 2020
- Messages
- 30
- Office Version
- 365
- Platform
- Windows
Hello,
Help please. I need a macro which will create a named range based on the selected cells in each sheet.
Each sheet is named as a ref number and the cell selection will always start as a year.
So after running the macro it should name the selected cells "REF NO_YEAR". Actually selecting the cells/range will be manual.
My workbook has over 200 tabs so I should end up with around 400 named ranges (for 2022 and 2023)
I wont be able to run this across the entre work book as the loaction of the data I want isn't in a consistent position - I'll need to do it for each sheet using this macro.
Many thanks
Help please. I need a macro which will create a named range based on the selected cells in each sheet.
Each sheet is named as a ref number and the cell selection will always start as a year.
So after running the macro it should name the selected cells "REF NO_YEAR". Actually selecting the cells/range will be manual.
My workbook has over 200 tabs so I should end up with around 400 named ranges (for 2022 and 2023)
I wont be able to run this across the entre work book as the loaction of the data I want isn't in a consistent position - I'll need to do it for each sheet using this macro.
Many thanks