Ok, been mulling over this for a while and I've gotten close, but here's my initial code:
Some pre-info, the macro's before this combine data from about 15 worksheets down to 2 worksheets and format them just the way I want them to look, except that in the process the print area gets totally hosed up. The worksheets are a set width, but can vary in height from a few dozen rows to hundreds.
Here's the code so far:
Here's the problem... I don't want the print area to be set to 200 rows, I want it to be set to the last row in the spreadsheet. Now I know how to find the last row containing data, and select the next row in the spreadsheet (the first empty row) using this code:
So, any idea how to dynamically set the print area to the last populated row, instead of a defined 200 rows?
Thanks!
Bookmarks