Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Printing / August 2007

Tip: Looking for answers? Try searching our database.

print list of ws names

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joanne - 11 Aug 2007 19:44 GMT
I am trying to get a list of the 'proper' names of my worksheets for
comparison against other users' names for them.
Here is the sub I wrote to print out the names, but, alas, it will not
do the job.

Public Sub PrintWSNames()
Workbook.Open "C:\MyWB.xls"

For Each ws In Worksheets
  ws.Name.PrintOut
Next ws

End Sub

Could someone out there please help me with the proper syntax for the
job?
Thanks a heap
Joanne
Nick Hodge - 14 Aug 2007 22:47 GMT
Joanne

This will create a list of worksheet names in a workbook on a new sheet you
can print.

http://www.nickhodge.co.uk/files/vba/BuildWorksheetIndex.xls

Signature

HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@zen.co.ukANDTHIS
web: www.nickhodge.co.uk
blog (non tech): www.nickhodge.co.uk/blog

>I am trying to get a list of the 'proper' names of my worksheets for
> comparison against other users' names for them.
[quoted text clipped - 14 lines]
> Thanks a heap
> Joanne
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.