Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Sun Sun is offline
external usenet poster
 
Posts: 8
Default How can I print the names of all the sheets in a list?

I have an exceldokument with 30 sheets and would like to print the names of
the sheets in a list. Someone who knows how that works?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default How can I print the names of all the sheets in a list?

You can try out the below macro. If you are new to macros..

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From menu 'Insert' a module and paste the below code.
--Get back to Workbook.
--Run macro from Tools|Macro|Run <selected macro()


Sub GetSheetNames()
Dim sh As Worksheet, lngRow As Long
For Each sh In ActiveWorkbook.Worksheets
lngRow = lngRow + 1
Range("A" & lngRow) = sh.Name
Next
End Sub

--
If this post helps click Yes
---------------
Jacob Skaria


"SUN" wrote:

I have an exceldokument with 30 sheets and would like to print the names of
the sheets in a list. Someone who knows how that works?

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
Print list of names of all sheets in a workbook Jo Excel Discussion (Misc queries) 1 September 24th 09 05:00 PM
Print list of ws names Joanne New Users to Excel 3 October 8th 07 03:16 PM
Can I print a list of names of all the tabs in xls on one page? sg Excel Discussion (Misc queries) 0 January 31st 07 08:13 PM
how do i set up a list of names on a sheet frm various sheets in e mcvities_69 Excel Discussion (Misc queries) 1 January 27th 06 02:51 AM
How do I print a list of worksheet tab names in a workbook Clif Excel Worksheet Functions 3 March 2nd 05 09:38 PM


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