Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set scroll area in copied book

Status
Not open for further replies.

philfer

Technical User
Jan 18, 2008
11
0
0
I use Activesheet.Copy to create a copy of a worksheet.



However I want to set the scroll area in that new worksheet. When I code it after the ActiveSheet.Copy it works ok until I close the workbook and open it up again when the scroll area has not been saved.



Is there any way to put code into another workbook from code in the original workbook?
 
When I code it
Which code ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 




I do not believe that ScrollArea is a property that gets saved.

Run the macro that sets the ScrollArea in the Workbook_Open event.

Skip,
[sub]
[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue][/sub]
 
After I do ActiveSheet.Copy

I do Activesheet.ScrollArea = "A1:E45"

it works until I close it down and re-open it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top