Hi,
Am doing a works project and have the code to search a column for a string and retrieve the information in the cells of that row into textboxes on a userform.
Right now its referencing the column number. and this works fine.
Am not savvy enough to be able to reference it the column header instead of the row number. Have tried a couple of ways off Google but with no joy.
I could do with this as I have the single userform for multiple tables on multiple sheets where the columns can differ.
Would someone be able to help me out.
The code am currently using (for the column number) is below. As an example to get me started the first table name is "kiln1tbl" and one header is "material".
Thanks in advance
Bookmarks