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 / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

Populating listbox with sheet names

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
johnb - 16 May 2008 11:07 GMT
Can I populate a listbox with worksheet names but skip the first sheet
(sheet1)?
Dave Peterson - 16 May 2008 12:33 GMT
Is this a listbox on a userform?

If yes, you could use something like this in the _initialize routine.

Dim iCtr as long
for ictr = 2 to activeworkbook.worksheets.count
  me.listbox1.additem activeworkbook.worksheets(ictr).name
next ictr

> Can I populate a listbox with worksheet names but skip the first sheet
> (sheet1)?

Signature

Dave Peterson

 
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.