Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default Select Sheet - Variable

Sub Macro1()
'

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

End Sub

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Select Sheet - Variable

Hi Al,

Look at the SelectedSheets property in VBA help.

Perhaps what you are looking for is:

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

---
Regards,
Norman



"al007" wrote in message
oups.com...
Sub Macro1()
'

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

End Sub

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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select a variable range Bluecat Excel Worksheet Functions 7 January 13th 09 01:24 AM
Use a Variable to select a range Connie Excel Discussion (Misc queries) 3 October 19th 06 05:48 PM
worksheet select using variable Kryer Excel Programming 3 November 11th 05 12:17 AM
Select rows using a variable jnasr00[_2_] Excel Programming 1 November 4th 05 04:58 AM
Select workbook with variable name. FinChase Excel Programming 1 November 12th 04 07:18 PM


All times are GMT +1. The time now is 01:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"