Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Page setup
I have a library of little macros in one xl workbook and want to run
them on a newly received workbook . I have a menu to activate the routines whild the new book is active. Most of the VBA instructions work fine on the new worksheet e.g. Range("A1").Select ActiveCell.FormulaR1C1 = "=NOW()" However Page Setup commands seem to be affecting my Macro library worksheet rather than the new workbook. for example With ActiveSheet.PageSetup ..PaperSize = xlPaperA4 ..BlackAndWhite = False ..Zoom = 70 End With Is this a bug or can I work around it? Thanks Sandy |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Page setup
I just tried this (xl2003) and it worked on the activesheet--which wasn't in the
workbook with the macro. Was that the extent of the macro? wrote: I have a library of little macros in one xl workbook and want to run them on a newly received workbook . I have a menu to activate the routines whild the new book is active. Most of the VBA instructions work fine on the new worksheet e.g. Range("A1").Select ActiveCell.FormulaR1C1 = "=NOW()" However Page Setup commands seem to be affecting my Macro library worksheet rather than the new workbook. for example With ActiveSheet.PageSetup .PaperSize = xlPaperA4 .BlackAndWhite = False .Zoom = 70 End With Is this a bug or can I work around it? Thanks Sandy -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Page layout - page setup - items disabled | Excel Discussion (Misc queries) | |||
FORMAT EXCEL WORKBOOK (PAGE SETUP) ALL AT ONCE INSTEAD OF BY PAGE | Excel Discussion (Misc queries) | |||
Page Setup when saving a worksheet as a web page | Excel Discussion (Misc queries) | |||
HOW DO I SETUP A PAGE IN EXCEL TO GIVE TOTALS TO ANOTHER PAGE | Excel Worksheet Functions | |||
Under Page Setup the page option of Ledger - for Office XP | Excel Discussion (Misc queries) |