[mso] Re: Excel Command or VBA Code to list all Sheet names

  • From: "Michael Luevane" <mikel@xxxxxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Wed, 8 Oct 2003 09:11:13 -0700

While by no means pretty, this code should help you get pointed in the right
direction
Sub test()
For Each s In Sheets
    Debug.Print s.Name
Next
End Sub

It just prints the name of each sheet into the immediate window. You can
modify it to print to wherever you want it.

 /================================================\
| Michael Luevane      | Systems Administrator     |
| mikel@xxxxxxxxxxxxxx | Quantec, LLC              |
| 503-228-2992         | http://www.quantecllc.com |
 \================================================/

> -----Original Message-----
> From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx]On
> Behalf Of McDonald, Christine, Ms, DCAA
> Sent: Wednesday, October 08, 2003 9:05 AM
> To: mso@xxxxxxxxxxxxx
> Subject: [mso] Excel Command or VBA Code to list all Sheet names
> 
> 
> Is there an Excel command or VBA code that can be written to 
> generate a
> listing of all the sheet names in an Excel Workbook?  Using Excel 2002
> on Windows 2000.
> Thanks,
> 
> Christine McDonald
> Technical Specialist
> Western Regional Office
> 
> 
> *************************************************************
> You are receiving this mail because you subscribed to 
> mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx
> 
> To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
> 
> To Unsubscribe from this group, send an email to 
> mso-request@xxxxxxxxxxxxx with the word "unsubscribe" 
> (without the quotes) in the subject line.
> 
> Or, visit the group's homepage and use the dropdown menu.  
> This will also allow you to change your email settings to 
> digest or vacation (no mail).
> //www.freelists.org/webpage/mso
> 
> To be able to use the files section for sharing files with 
> the group, send a request to mso-moderators@xxxxxxxxxxxxx and 
> you will be sent an invitation with instructions.  Once you 
> are a member of the files group, you can go here to 
> upload/download files:
> http://www.smartgroups.com/vault/msofiles
> *************************************************************
> 


-- Binary/unsupported file stripped by Ecartis --
-- Type: application/ms-tnef
-- File: winmail.dat


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: