Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
John Scott
 
Posts: n/a
Default Get a list of worksheets from a WB

How do I get a list of WS from a WB?

Jonah

  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Get a list of worksheets from a WB

John,

Try some code like

Sub AAA()
Dim Dest As Range
Dim WS As Worksheet
Set Dest = Range("A1") 'change as desired
For Each WS In ThisWorkbook.Worksheets
Dest.Value = WS.Name
Set Dest = Dest(2, 1)
Next WS
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"John Scott" wrote in message
...
How do I get a list of WS from a WB?

Jonah



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
Filterered list to new worksheet rudawg Excel Worksheet Functions 1 January 30th 06 03:29 PM
Create a list in one worksheet of the other worksheets' names Kelli Excel Worksheet Functions 0 July 7th 05 08:45 PM
how do i link a list of items in a workbook to worksheets in the . Camalla Excel Discussion (Misc queries) 2 April 22nd 05 09:35 PM
How do I use multiple worksheets (List) in a Pivot Table Report? Robert Excel Worksheet Functions 1 December 2nd 04 04:16 PM
Consolidate list from multiple worksheets VT Excel Worksheet Functions 0 November 24th 04 04:51 PM


All times are GMT +1. The time now is 11:48 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"