Hey, guys. I need your help again, please.
This VBA code works for our reports with constant-changing bottom margins:
ActiveSheet.PageSetup.PrintArea = "=" & ActiveSheet.UsedRange.Address
I need it changed as follows:
1. The right margins should reset based on these conditions: If column N has no dollar amounts, then print A1 through column L. If column N does have dollar amounts, then print A1 through column N. Note that in cell N9 there is a heading label.
2. The reports are landscape orientation. They need to fit on 1 page wide no matter which columns print. (The last 2 or 3 columns will print on the 2nd page if the print settings are not manually changed. I would like the code to do this for me).
3. The very last row has only a grand total in column F, which needs to be included in the print range. This row changes for each report.
I hope this is sufficient info - please let me know if you need more.
Thanks,
Debbie
Bookmarks