I am trying to access a named range from using VBA in Excel 2007. When I used the explicit range i.e. "A3:M53" I can get the formula below to work. However, when I replace the explicit range with a named range I get an error. I need to use named ranges as the program needs to select different ranges depending on what data is imported. Fixed.OAX.5 is a named range on the OAX50 worksheet.
WorksheetFunction.Match(5, Worksheets("OAX50").Range("Fixed.OAX.5"), 1)
When I run this code I get "Unable to get the Match property of the WorksheetFunction class.