Printout Question

LenaH

New Member
Joined
May 21, 2020
Messages
40
Office Version
  1. 2016
Platform
  1. Windows
Dear all,

I have several list, that I need to print out. The lists are filled from top to bottom.
So it happens, that I have lists that only fill 1 page, but still printout the whole 6 pages.

What a waste of paper!

Is there a way to have Excel determine the amount of data, the lists are filled with and
only printout the necessary ones?

Oh and if possible, that needs to be done with VBA code, since automated.

This is the general code, to print the lists:
VBA Code:
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False

Lena
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
VBA Code:
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
jjust add in the From and To parameters as shown above to tell it which pages to print.
 
Upvote 0
The filling of this table is dynamic. It can be 6 pages or less. Setting it to one page doesn't do the trick, unfortunately.
 
Upvote 0
From my understanding you are looking for a way to manage the print area. Some questions need to be answered.
- how many lists / tables are there on each worksheet to print?
- which columns are used to populate / display / print each list?
- are there headers / footers / title rows involved?
- which column can be used to determine the bottom of each list?
You might consider to provide a sample of your list(s).
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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