I'd like to be able to count a specific number of populated fields in a table in excel and, if the information ends at row 25 for example, set the print area to print the table up to where the populated fields end.
Do you have information below those rows? If so, you probably ought to move it to another sheet anyway. If not, why do you need to make the print selection? Is it printing blank pages? There are other ways to resolve problems like this. Are you looking for a code solution? Generally, you should be able to hit:
Ctrl-home
Shift-Ctrl-End
Hit Print, choose "selection" and print.
There isn't any information below the rows and it does print out blank pages. I use a template which needs to cater for different quantities of information so I've made it err on the side of caution for size and as other users print this report (and others) I'd like to use a macro which prints the reports and reduces the paper used.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.