Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default select all worksheets in a workbook


Is there a quick code to select all worksheets in a workbook....no sheet
is hidden....i want to use cell.select - but do it for everysheet and
not just one sheet...

thank you for any help


--
jhahes
------------------------------------------------------------------------
jhahes's Profile: http://www.excelforum.com/member.php...o&userid=23596
View this thread: http://www.excelforum.com/showthread...hreadid=570080

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default select all worksheets in a workbook

Untested but you can try this...

sub SelectAllSheets
dim wks as worksheet

for each wks in worksheets
wks.select false 'Select all sheet
wks.cells.select 'Select all Cells
next wks
end sub
--
HTH...

Jim Thomlinson


"jhahes" wrote:


Is there a quick code to select all worksheets in a workbook....no sheet
is hidden....i want to use cell.select - but do it for everysheet and
not just one sheet...

thank you for any help


--
jhahes
------------------------------------------------------------------------
jhahes's Profile: http://www.excelforum.com/member.php...o&userid=23596
View this thread: http://www.excelforum.com/showthread...hreadid=570080


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default select all worksheets in a workbook

One mo
Worksheets.Select

or if you want to include chart sheets:
sheets.select

jhahes wrote:

Is there a quick code to select all worksheets in a workbook....no sheet
is hidden....i want to use cell.select - but do it for everysheet and
not just one sheet...

thank you for any help

--
jhahes
------------------------------------------------------------------------
jhahes's Profile: http://www.excelforum.com/member.php...o&userid=23596
View this thread: http://www.excelforum.com/showthread...hreadid=570080


--

Dave Peterson
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
How to select all worksheets in a workbook Faith Excel Discussion (Misc queries) 8 October 20th 08 09:12 PM
Protecting select group of worksheets within a workbook Audrey G. Excel Worksheet Functions 0 July 8th 08 06:16 PM
Select sheet tabs in workbook & save to separate workbook files stratocaster Excel Worksheet Functions 2 March 1st 06 03:35 PM
Sheets select method fails when workbook is opened by another workbook Mike Excel Programming 2 June 8th 04 04:17 AM
Select other workbook to select data in a macro. T Tromp Excel Programming 2 September 19th 03 01:43 PM


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

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

About Us

"It's about Microsoft Excel"