Automatically/Dynamically Set Print Area

rockja

New Member
Joined
Dec 14, 2010
Messages
7
We are using a task list which has a fixed number of columns (A-F) but we are constantly adding rows. Since this is something which gets printed often, it's becoming annoying to keep setting the print area each time, not to mention there are some who keep forgetting to set the print area and print incomplete reports.

I've coded a simple counter which updates every time a new row of information is added (pasted below).

I then used the max of the counter to dynamically change the coordinates of the second formula (pasted below).

I need to figure out a way to input the second formula into the 'Print_Area' in Name Manager.

Is this possible or am I taking crazy pills?!

Thanks,
-Jason

'Counter' =IF(ISBLANK(A23)=FALSE,G22+1,"")=23
'Dynamic Table' =(CONCATENATE("A1:F",MAX(G1:G1000)))=A1:F23
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Got it working... Sort of

In Name Manager, I set Print_Area=OFFSET('Task List'!$A$1,0,0,COUNTA('Task List'!$A:$A),6)

This works great until I save and close the workbook. When I reopen it, a fixed print area replaces my above formula.

Any ideas?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,591
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top