ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Making print range dynamic in macro (https://www.excelbanter.com/excel-programming/348071-making-print-range-dynamic-macro.html)

Newbie dumbo

Making print range dynamic in macro
 
How do you create a dynamic print range to accept new data as new dat are
being added in new rows?

keepITcool

Making print range dynamic in macro
 

If and when possible print the entire sheet
or a specified nr of columns (e.g. A:F)

(excel will skip anything beyond the usedrange)

else define a "dynamic range".. e.g.
MyDB = =Offset($D$10,0,0,counta($D$10:$D$65536),counta($1 0:$10))

then via define names set the Print_Area (localized) to point to MyDB



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Newbie dumbo wrote :

How do you create a dynamic print range to accept new data as new dat
are being added in new rows?



All times are GMT +1. The time now is 08:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com