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: 1
Default Visible Sheet Showing When Hidden

Hi,

I have some code for a listbox in a userform. Some of my sheets are se
to very hidden and with the code I have it's supposed to show just th
visible sheets. I have eight sheets that I dont want the users to hav
access to they are just used for coding purposes. But for some reaso
they show in the list box.

Thanks for any help or suggestions

Private Sub UserForm_Initialize()
Dim i As Long
With Me.ListBox1
.Clear
.MultiSelect = fmMultiSelectMulti
.ListStyle = fmListStyleOption
For i = 1 To ActiveWorkbook.Sheets.Count
If ActiveWorkbook.Sheets(i).Visible Then
.AddItem ActiveWorkbook.Sheets(i).Name
End If
Next
End With
End Sub

Rockee :confused

--
Message posted from http://www.ExcelForum.com

 
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
Copy Visible Cells in Sheet with Merged and Hidden Cells rtwiss Excel Discussion (Misc queries) 5 April 25th 23 09:08 AM
showing hidden rows on a protected sheet cathy Excel Discussion (Misc queries) 10 June 6th 08 10:13 PM
Is there an icon to use showing visible cells only? shive_s Excel Worksheet Functions 2 October 12th 07 08:51 PM
ListBox with hidden and visible sheet names? Rockee052[_43_] Excel Programming 8 February 20th 04 09:36 AM
Problem pasting a row from a hidden sheet to the first free row on another visible sheet Didier Poskin Excel Programming 2 January 10th 04 01:18 AM


All times are GMT +1. The time now is 09:07 AM.

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"