Sheets Array

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

The following line of code works:

Sheets(Array(1, 2, 3)).Select
however, when I try and do this programmatically
eg:

mysheets ="1, 2, 3"
Sheets(Array(mysheets)).Select
It fails - can anyone point out what I am missing.

Many thanks
 
Hello Dave
mysheets = Array("1", "2","3")
Sheets(mysheets).Select

HTH
Cordially
Pascal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top