Poiuytresa
New Member
- Joined
- Aug 21, 2008
- Messages
- 5
Ive a file with multiple worksheet and trying to set print area for all worksheets at once (grouped). This macro posted by Juan Pablo works fine with one sheet but when I group the worksheets this macro doesnt work. I would like to set print area when the worksheets are grouped so I can run the macro only once.
Sub SetArea()
ActiveSheet.PageSetup.PrintArea = Range("A1",Range("M65536").End(xlUp)).Address
End Sub
Thanks
Sub SetArea()
ActiveSheet.PageSetup.PrintArea = Range("A1",Range("M65536").End(xlUp)).Address
End Sub
Thanks