Select Sheet - Variable

  • Thread starter Thread starter al007
  • Start date Start date
A

al007

Sub Macro1()
'

Sheets(Array("Sheet1", "Sheet3", "Sheet2")).Select

End Sub

How can I highlight the sheet4 & Sheet5 and the above command updates
automatically??
Thxs
 
Hi Al,

Look at the SelectedSheets property in VBA help.

Perhaps what you are looking for is:

Workbooks("Book1.XLS").Windows(1).SelectedSheets
 

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