VBAProIWish
Well-known Member
- Joined
- Jul 6, 2009
- Messages
- 1,027
- Office Version
- 365
- Platform
- Windows
Hello All,
I have this code here that sets the print area based on the current region...
How can I modify that code to add, let's say, 5 extra rows to the print area? (keeping the column count the same)
I tried several things. Here's a few I tried that didn't work...
What am I doing wrong?
Thanks
I have this code here that sets the print area based on the current region...
Code:
ActiveSheet.PageSetup.PrintArea = [A1].CurrentRegion.Address
How can I modify that code to add, let's say, 5 extra rows to the print area? (keeping the column count the same)
I tried several things. Here's a few I tried that didn't work...
Code:
ActiveSheet.PageSetup.PrintArea = [A1].CurrentRegion.Address.Offset(5)
ActiveSheet.PageSetup.PrintArea = [A1].CurrentRegion.Offset(5)
ActiveSheet.PageSetup.PrintArea = [A1].CurrentRegion.xlDown.Offset(5)
What am I doing wrong?
Thanks