Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Sure enough, I ran into the "You need to have something showing, stupid" type error message. I haven't figured out the mechanics of how pages are hidden yet to figure out the best way to limit the last page to hide. The page that I don't want hidden is called, "Summary" this is what I've been expirmenting with. Private Sub reset() Call Unlockall Application.ScreenUpdating = False Dim PW As String Dim oSht As Worksheet On Error Resume Next For Each oSht In ActiveWorkbook.Worksheets On Worksheets("summary") GoTo ln47 oSht.Visible = False Next 'Worksheets("summary").Visible = True 'Worksheets("summary").Select 'Worksheets("subscriber equipment").Visible = False Call Lockall Application.ScreenUpdating = True MsgBox ("The form has been returned to default operation.") End Sub The parts that I've appostophied out was when I thought that it was hiding them in alphabetical order, but another time I ran the macro it ended up with another sheet unhidden. The "On Worksheets("summary") GoTo ln47" didn't work at all, but I've not played with it that much, yet. -- wilro85 ------------------------------------------------------------------------ wilro85's Profile: http://www.excelforum.com/member.php...o&userid=26935 View this thread: http://www.excelforum.com/showthread...hreadid=572449 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
locking and unlocking worksheets | Excel Worksheet Functions | |||
Conditional Cell Locking/Unlocking | Excel Programming | |||
Unlocking and locking a specific cell | Excel Programming | |||
Locking and unlocking a workbook | Excel Programming | |||
Locking/unlocking cells | Excel Programming |