Error "438':
Object doesn't support this property or method
I should have posted that, sorry.
Gord Dibben wrote:
> The "bug" shows itself in what manner?
>
>
> Gord Dibben MS Excel MVP
>
> On Tue, 09 Oct 2007 14:43:39 -0400, stef <(E-Mail Removed)> wrote:
>
>> Excel 2002 SP3
>> Win XP Pro
>>
>> *Follow-up to: microsoft.public.excel.programming*
>>
>> Hi,
>>
>> I have a bug with the line ".EnableSelection = xlUnlockedCells" in this
>> macro:
>>
>> Sub ProtectAllSheets()
>> Application.ScreenUpdating = False
>> Dim n As Single
>> For n = 1 To Sheets.Count
>> With Sheets(n)
>> .Protect Password:="nosecret"
>> .EnableSelection = xlUnlockedCells
>> End With
>> Next n
>> Application.ScreenUpdating = True
>> End Sub
>>
>> It's always worked in the past and I can't understand what is happening now.
>>
>> Be easy on me as I am a newbie at XL macros/VBA....
>
|