i am looking for a specific column header in the first row of a sheet called "Reference" and wrote this:
colnum = Application.WorksheetFunction.Match("Reference", 1:1,0)
however, it is saying there is something wrong with my syntax. I am not sure what is wrong. Can someone correct this so that it returns the correct column number when it finds the header "Reference" in row one of my sheet.