Hi,
I've got a list of pages i want to select using VB, the list of pages is contained within a defined name ("PageSelector"). When i use this defined name to select one sheet - eg.
The code works with no problem, but as soon as i try and use multiple pages with
Nothing will work, the code just skips past this section. I've tried all types of ways of storing the page names, currently they are stored in excel as: "Pg1", "Pg2", etc.
Thank you very much for your help, I've been trying all everning to get this working.
I've got a list of pages i want to select using VB, the list of pages is contained within a defined name ("PageSelector"). When i use this defined name to select one sheet - eg.
Code:
Dim PageSelect As String
PageSelect = Evaluate("PageSelector")
Sheets(PageSelect).Select
The code works with no problem, but as soon as i try and use multiple pages with
Code:
Sheets(Array(PageSelect)).Select
Nothing will work, the code just skips past this section. I've tried all types of ways of storing the page names, currently they are stored in excel as: "Pg1", "Pg2", etc.
Thank you very much for your help, I've been trying all everning to get this working.