General Ledger
Active Member
- Joined
- Dec 31, 2007
- Messages
- 460
Dear All,
I am trying to set the print area in a macro to the current region based on cell A3.
I have the following code:
ActiveSheet.PageSetup.PrintArea = Range("a3").CurrentRegion
I get the error:
Run-time error '1004': The text you entered is not a valid reference or defined name.
Please advise what I have done wrong?
Thanks,
GL
I am trying to set the print area in a macro to the current region based on cell A3.
I have the following code:
ActiveSheet.PageSetup.PrintArea = Range("a3").CurrentRegion
I get the error:
Run-time error '1004': The text you entered is not a valid reference or defined name.
Please advise what I have done wrong?
Thanks,
GL