Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Populating listbox with sheet names

Can I populate a listbox with worksheet names but skip the first sheet
(sheet1)?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Populating listbox with sheet names

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



johnb wrote:

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


--

Dave Peterson
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
Populating listbox Mick[_2_] Excel Discussion (Misc queries) 1 May 14th 08 10:48 PM
Help Automatically Populating A Summary sheet Box666 New Users to Excel 1 March 1st 07 12:15 PM
populating DropDown with Values Of a Column in another Sheet. ZarrinPour Excel Discussion (Misc queries) 7 March 12th 06 02:51 PM
Userform Listbox using an active sheet [email protected] Excel Discussion (Misc queries) 0 March 1st 06 08:22 PM
populating sheet with data from other sheets G. Beard New Users to Excel 0 October 3rd 05 04:14 AM


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