amitcohen
Board Regular
- Joined
- Jan 14, 2010
- Messages
- 118
Hi Guys & Gals
Hope you can help..
I created a code to select range and set a print area
But it popsup a runtime error 1004
What is wrong in the code?
Many thanks,
Amit
Hope you can help..
I created a code to select range and set a print area
Code:
Range("A8").Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlUp)).Select
[COLOR=Red]ActiveSheet.PageSetup.PrintArea = "$A$8:$I$ & range(""L3"").value"[/COLOR]
What is wrong in the code?
Many thanks,
Amit