Hi StargateFanFromWork,
> How do I leave out the password, pls? I just do a generic, or whatever
> it's
> called, protect on the worksheets without any name or anything. Would
> like
> to leave it without a pw.
'=============>>
Private Sub Workbook_Open()
Dim SH As Worksheet
For Each SH In Me.Worksheets
With SH
.Protect UserInterfaceOnly:=True
.EnableAutoFilter = True
End With
Next SH
End Sub
'<<=============
> btw, is there no way to just modify the "Worksheets("Sheet1").Activate" so
> that it doesn't have to take a worksheet name? Just curious. It seems
> much
> simpler than this code below. (But then, what do I know? <g>)
The above code does not activate any sheet (which should be unnecessary) and
no sheet names are used.
---
Regards,
Norman
> How do I leave out the password, pls? I just do a generic, or whatever
> it's
[quoted text clipped - 57 lines]
>> >
>> > Thank you! :oD
StargateFanFromWork - 26 Jan 2006 18:31 GMT
You're right. Sorry. This works fantastically well, I'm so pleased. The
only thing that happens is that there is a bit of a flicker as each sheet is
dealt with. You see each sheet pop up for a millisecond. But that's
perfectly fine.
All the sheets are protected but the ones that have filters now allow the
filters to work.
Thank you so much everyone. Appreciate it! :oD
> Hi StargateFanFromWork,
>
[quoted text clipped - 90 lines]
> >> >
> >> > Thank you! :oD