PDA

View Full Version : Solved: set scroll area in copied book



philfer
01-20-2008, 11:25 AM
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?

Carl A
01-20-2008, 12:36 PM
Here is a KB entry for deleting and adding macros. You should be able to adjust it for a new worksheet.

http://vbaexpress.com/kb/getarticle.php?kb_id=250

HTH