Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Allan H.
 
Posts: n/a
Default Can't get list in Document Contents for workwheet

In any given worksheet, in File - Properties, there is a Contents tab. On
this tab is a list of the worksheets within the workbook. Is there any way
to get a list of these without having to do a manual copy/paste from each
tab, or scroll through the tabs to get what the names are? It seems very
simple as the information is there, but I can't figuer out how to get to it.
  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

Allan

The only way I know is to use a macro to list the sheets onto a worksheet.


Sub ShowNames()
'list of sheet names in a workbook - placed on a new worksheet
Set wkbkToCount = ActiveWorkbook
iRow = 1
With Sheets.Add
For Each ws In wkbkToCount.Worksheets
.Rows(iRow).Cells(1).Value = ws.Name
iRow = iRow + 1
Next
End With
End Sub

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + R to open Project Explorer.

Find your workbook/project and select it.

Right-click and InsertModule. Paste the above code in there. Save the
workbook and hit ALT + Q to return to your workbook.

Run the macro by going to ToolMacroMacros.


Gord Dibben Excel MVP

On Wed, 14 Sep 2005 12:01:31 -0700, "Allan H." <Allan
wrote:

In any given worksheet, in File - Properties, there is a Contents tab. On
this tab is a list of the worksheets within the workbook. Is there any way
to get a list of these without having to do a manual copy/paste from each
tab, or scroll through the tabs to get what the names are? It seems very
simple as the information is there, but I can't figuer out how to get to it.


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
Exporting multiple cell contents into word document Davy L Excel Worksheet Functions 1 September 6th 05 04:06 AM
Update master list with other lists Chab Excel Worksheet Functions 0 August 4th 05 03:46 PM
LOOP - Adddress List -to email Paul. Excel Discussion (Misc queries) 0 April 13th 05 09:54 AM
Loop through email address list to send e-mails Paul. Excel Discussion (Misc queries) 1 April 12th 05 12:41 PM
HELP - Have two lists and #1 needs #2's contents subtracted from it Barry Brown Links and Linking in Excel 1 December 7th 04 07:50 PM


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