> Yes i put in the "This workbook" module. its so strange.
> thanks
[quoted text clipped - 37 lines]
>> >> > there any code???. please help. Thanks in advance.
>> >> > moiz
Thank u Sandy,
I did a mistake, thanks a lot, the code also was in sheet module as well in
workbook module. now its working fine once again thank u very much. i have
one more doubt. how to add more scrolling lock for other sheets too????
> And macros are enabled?
>
[quoted text clipped - 39 lines]
> >> >> > there any code???. please help. Thanks in advance.
> >> >> > moiz
Sandy - 10 May 2008 16:07 GMT
To the code already in the 'This Workbook' module, just add the other sheets
as example below
Sub Workbook_Open()
Sheets("YourSheetName").ScrollArea = "A1:AR31"
Sheets("YourSheetNameA").ScrollArea = "A1:AR31"
Sheets("YourSheetNameB").ScrollArea = "A1:AR31"
Sheets("YourSheetNameC").ScrollArea = "A1:AR31"
End Sub
HTH
Sandy
> Thank u Sandy,
> I did a mistake, thanks a lot, the code also was in sheet module as well
[quoted text clipped - 49 lines]
>> >> >> > there any code???. please help. Thanks in advance.
>> >> >> > moiz
moiz - 10 May 2008 17:02 GMT
Thanks Sandy.....Thanks once again.
moiz
> To the code already in the 'This Workbook' module, just add the other sheets
> as example below
[quoted text clipped - 65 lines]
> >> >> >> > there any code???. please help. Thanks in advance.
> >> >> >> > moiz
Gord Dibben - 10 May 2008 19:24 GMT
If you want all sheets to have the same scrollarea you can have one set of code
in Thisworkbook module.
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
ActiveSheet.ScrollArea = "A1:AR31"
End Sub
Gord Dibben MS Excel MVP
>Thank u Sandy,
>I did a mistake, thanks a lot, the code also was in sheet module as well in
[quoted text clipped - 44 lines]
>> >> >> > there any code???. please help. Thanks in advance.
>> >> >> > moiz