I have a workbook with 2 sheets where I need to limit scroll area. The areas are different on each sheet. The main sheet has macro buttons to enable viewing which includes limiting scroll area.
When a sheet is selected, it works fine. But when the other sheet is selected, it still displays the scroll area on the previous sheet. Below are the 2 macros. I've looked for a way to release scroll area limiting
but haven't found anything.
Sub Out_of_Town_Printout()
Application.ScreenUpdating = False
Sheets("Flight Printout").Select
Sheets("Flight Printout").ScrollArea = "AT1:CW47"
Range("CW47").Select
Range("AT4").Select
End Sub
Sub End_of_year_printout()
Application.ScreenUpdating = False
Sheets("Flight Printout").Select
Sheets("Flight Printout").ScrollArea = "DJ1:FJ47"
Range("FJ47").Select
Range("DJ7").Select
End Sub
When a sheet is selected, it works fine. But when the other sheet is selected, it still displays the scroll area on the previous sheet. Below are the 2 macros. I've looked for a way to release scroll area limiting
but haven't found anything.
Sub Out_of_Town_Printout()
Application.ScreenUpdating = False
Sheets("Flight Printout").Select
Sheets("Flight Printout").ScrollArea = "AT1:CW47"
Range("CW47").Select
Range("AT4").Select
End Sub
Sub End_of_year_printout()
Application.ScreenUpdating = False
Sheets("Flight Printout").Select
Sheets("Flight Printout").ScrollArea = "DJ1:FJ47"
Range("FJ47").Select
Range("DJ7").Select
End Sub