![]() |
|
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 3
|
For a varying size of report how to set print area within macro ?
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Apr 2002
Location: Plano, Texas
Posts: 29
|
Try this...You will first need to define the name of your data range.
rowcount = Range("Output").Rows.Count Sheets("Report").Select printrange = "A1:K" & rowcount Sheets("Report").PageSetup.printarea = printrange [ This Message was edited by: larry on 2002-04-05 13:31 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|