Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Sub CheckAdminPage() Dim CurSheet As String, NS As Object Dim AdminPage As String On Error GoTo SkipAll AdminPage = "AdminPage" CurSheet = ActiveSheet.Name Application.ScreenUpdating = False For Each c In ThisWorkbook.Sheets If c.Name = AdminPage Then Exit Sub Next Set NS = ThisWorkbook.Sheets.Add NS.Activate NS.Name = AdminPage NS.Move after:=Sheets(ThisWorkbook.Sheets.Count) NS.Visible = False Sheets(CurSheet).Activate SkipAll: Application.ScreenUpdating = True End Su -- crispb ----------------------------------------------------------------------- crispbd's Profile: http://www.excelforum.com/member.php...fo&userid=1088 View this thread: http://www.excelforum.com/showthread.php?threadid=27636 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hiding columns in a protected sheet | Excel Discussion (Misc queries) | |||
Hiding sheet in a workbook | Excel Worksheet Functions | |||
hiding all data in a sheet except desired | Excel Worksheet Functions | |||
Hiding a sheet | Excel Programming | |||
Hiding A Sheet Command Button With VBA | Excel Programming |