MuddyBrain3
New Member
- Joined
- Feb 21, 2011
- Messages
- 44
I'm trying to call VLOOKUP from a VBA sub to return a Variant, n, from another worksheet. I've twisted and turned it any number of ways, but no luck. This is the latest coding:
Hope someone can give the correct syntax. Thanks.
Code:
n = Application.WorksheetFunction.VLookup("$H$9", Worksheets("Sales Record").Range("A1:ZZ1000"), counter , False)