Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to set up a macro that sets the print area. I tried getting the
code by using "record new macro", and copying my keystrokes. I highlighted the area I want to print, and recorded the keystrokes from there. The macro came out to be: ActiveSheet.PageSetup.PrintArea = "$A$1:$G$35" However, the actual area will vary depending on the worksheet. How can I change this code to make the area = only what I have highlighted at the time I start the macro? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting Print Area | Excel Programming | |||
setting up the print area | Excel Programming | |||
setting print area | Excel Programming | |||
Setting the print area | Excel Programming | |||
Setting Print Area | Excel Programming |