Given the name of the column (ie. the text in the header row), I just want to return the column number.
Using this code I get an error when nothing is found.
dim mycol as variant
mycol = ActiveSheet.Range("1:1"
.find(sort_name, SearchOrder:=xlByRows).Column
Is there a better way?
Using this code I get an error when nothing is found.
dim mycol as variant
mycol = ActiveSheet.Range("1:1"
Is there a better way?