LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Add sheets that are unhide

Gus,

Here's some code

Private Sub ComboBox1_DropButtonClick()
Dim i As Long
ComboBox1.Clear
With ActiveWorkbook
For i = 1 To .Worksheets.Count
If .Worksheets(i).Visible = True Then
ComboBox1.AddItem .Worksheets(i).Name
End If
Next i
End With
ComboBox1.ListIndex = 0
End Sub

--

HTH

Bob Phillips

"GUS" wrote in message
...
How can we add to a combobox (from controltoolbox toolbar)
all the sheets that are unhide in a workbook.

The code must be placed after combobox1.clear


Private Sub ComboBox1_DropButtonClick()
ComboBox1.Clear

''''code here



ComboBox1.Text = "Go To..."
End Sub




 
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
Unhide Multiple Sheets Bev Excel Discussion (Misc queries) 5 June 9th 09 04:01 PM
Unhide multiple sheets all at once glenlee Excel Discussion (Misc queries) 3 August 11th 07 06:42 AM
Unhide hidden sheets Minos Excel Discussion (Misc queries) 1 November 25th 05 05:07 PM
How to Unhide sheets pwermuth Excel Discussion (Misc queries) 4 July 15th 05 11:43 PM
How do I unhide multiple sheets? ahonig Excel Worksheet Functions 3 December 14th 04 09:03 PM


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