wrmcmahan12
New Member
- Joined
- May 13, 2015
- Messages
- 12
I'm trying to set print area based on how many rows in a range are not blank. I have tried the offset function to dynamically set a range, but Excel keeps converting the dynamic range to a static range. I'd like to have a button to press that says "print" and will set the proper print area in range $g$3:$J$100 ( if the last entry is in row 20 the range would be $G$3:$J$20). I understand how to do the last row vba function, but the issue is there is another data range below row 100 so I need to find the last row above row 101 for example. How could I adjust the vba to look for the last row above row 101 for instance?