Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is part of some code I wrote to limit acess to some spreadsheets.
It's supposed to ignore the sheet "(Code Key)". But it still asks for a password. Private Sub Workbook_SheetChange(ByVal ws As Object, ByVal Target As Range) Dim sShName As String For Each ws In ActiveWorkbook.Worksheets If Right(ws.Name, 7) < "Monthly" Then 'ignore these sheeets Select Case ws.Name Case "(Code Key)" 'Excluded sheets Exit Sub Case Else 'if password hasn't been entered yet, then ask for password If bPwrdEntrd = False Then Call PasswordEntry End If End Select End If Next End Sub I tried using CodeName instead of sheet name, but that didn't work either. Does anyone see what is wrong? Thanks again. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy Worksheet and Exclude Hidden fields | Excel Worksheet Functions | |||
finding cells excluded by autofilter | Excel Programming | |||
HOW DO I TOTAL A FILTERED LIST TO EXCLUDE THOSE EXCLUDED BY FILTE. | Excel Worksheet Functions | |||
Is there a function that allows me to list the names of excluded d | Excel Worksheet Functions | |||
HOW DO I EXCLUDED A FIGURE FROM A CONDITIONAL FORMAT???? | Excel Worksheet Functions |