Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Listboxes - populate with all worksheet names


Hello,

I would like to populate a forms listbox with all the sheetnames in my
workbook. I would also like to exclude certain sheet names from the
list.

As I add sheets, I would like this to be picked up by the code and
added to the listbox.

Is this possible?


--
bluegnu
------------------------------------------------------------------------
bluegnu's Profile: http://www.excelforum.com/member.php...o&userid=36108
View this thread: http://www.excelforum.com/showthread...hreadid=560572

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Listboxes - populate with all worksheet names


I have worked this out now. I used:


Code
-------------------
Dim wbs As Worksheet

For Each wbs In Worksheets
If wbs.Name < "ignore_sheet" Then
ListBox1.AddItem wbs.Name
End If
Nex
-------------------

--
bluegn
-----------------------------------------------------------------------
bluegnu's Profile: http://www.excelforum.com/member.php...fo&userid=3610
View this thread: http://www.excelforum.com/showthread.php?threadid=56057

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
trying to make several worksheets populate names to another [email protected] Excel Worksheet Functions 0 February 26th 08 07:42 PM
Listboxes on a worksheet Jonathan Excel Programming 0 June 28th 06 01:40 AM
Populate Rows from worksheet Names. Trever B Excel Discussion (Misc queries) 2 May 15th 06 05:08 AM
List box: Populate with Range Names CinqueTerra Excel Programming 2 October 11th 05 11:22 PM
populate combobox with sheet names David Goodall Excel Programming 0 September 12th 04 08:55 AM


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