Bill Robbins
New Member
- Joined
- May 7, 2002
- Messages
- 20
Hi.
I am trying to get a macro to set print parameters based on the range that my HLookup formula finds.
Here's what I have so far:
: pageset = Application.WorksheetFunction.HLookup(B44, [A40:L41], 2)
ActiveSheet.PageSetup.PrintArea = pageset
I seem to have entered the Hlookup formula incorrectly. Can someone please help?
Thanks.
Bill.
I am trying to get a macro to set print parameters based on the range that my HLookup formula finds.
Here's what I have so far:
: pageset = Application.WorksheetFunction.HLookup(B44, [A40:L41], 2)
ActiveSheet.PageSetup.PrintArea = pageset
I seem to have entered the Hlookup formula incorrectly. Can someone please help?
Thanks.
Bill.