Auto Selection of Print Area

ammdumas

Active Member
Joined
Mar 14, 2002
Messages
469
Have a spreadsheet which contains functions in 300 hundred rows.
Data is automatically imported using a macros.
Not all 300 rows are used most of the time for each import.
How do I set the Page Setup - Select Print Area to automatically select only the rows where data was imported?
This message was edited by ammdumas on 2002-03-15 12:08
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Try this:
ActiveSheet.PageSetup.PrintArea=ActiveCell.CurrentRegion.Address

Hope this helps.
Kind regards, Al.
 
Upvote 0
Thanks. Tried it but it still prints everything. I think it still sees the formulas in the unused cells. I think that's the problem.
 
Upvote 0

Forum statistics

Threads
1,214,921
Messages
6,122,280
Members
449,075
Latest member
staticfluids

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