Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro for Print Area
Hi,
I want to write a macro to automatically set the print area of a particular page. The page changes in size each day. I want to use the current region function. Can someone please help me with this. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro for Print Area
from the VBA helpfile:
This example sets the print area to the current region on Sheet1. Note that you use the Address property to return an A1-style address. Worksheets("Sheet1").Activate ActiveSheet.PageSetup.PrintArea = _ ActiveCell.CurrentRegion.Address -- jb "misskh" wrote: Hi, I want to write a macro to automatically set the print area of a particular page. The page changes in size each day. I want to use the current region function. Can someone please help me with this. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to hide rows with a certain cell empty then set print area and print | Excel Programming | |||
Macro - Set Print Area for Changing Data Area | Excel Programming | |||
Pivot Table macro to set print area and print details of drill down data | Excel Discussion (Misc queries) | |||
Create a print macro that would automatically select print area? | Excel Worksheet Functions | |||
Set Print Area with a macro | Excel Programming |