LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
GUS GUS is offline
external usenet poster
 
Posts: 45
Default array worksheets

i want to build a sheet navigator with a combobox.
I have the next code that this but not the way i want
I Don't want all the sheets to be in the combobox and except that
i don't want to appear in the combobox with their sheetnames
so i thought to built an array with tree options
1.sheename
2.Name appear in the combobox
3. Index sheet number for the (combobox change)

Can anyone help?



Private Sub ComboBox1_Change()
On Error Resume Next
Sheets(ComboBox1.Text).Select
End Sub

Private Sub ComboBox1_DropButtonClick()
ComboBox1.Clear
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

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
Can a SUMPRODUCT array formula be used across multiple worksheets? Ray Excel Discussion (Misc queries) 0 February 24th 10 06:58 PM
Array across multiple worksheets rda Excel Discussion (Misc queries) 1 April 23rd 08 07:31 PM
Array formula referencing other worksheets broderp Excel Worksheet Functions 1 December 8th 06 09:27 PM
Two worksheets, one array bob Excel Discussion (Misc queries) 2 June 14th 06 11:26 PM
printing an array of worksheets Marco de Witte Excel Discussion (Misc queries) 4 December 8th 04 03:21 PM


All times are GMT +1. The time now is 06:51 AM.

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"