UnsolvedCoding
Technical User
I am working on a series of worksheets that all contain the same information in different locations on a tab and there are over 30 different layouts. The only thing consistant is that certain words populate more often than other words.
What I would like to do is use a find to locate words in a workbook and if they are found change a counter up by one, if not found go to the next word in the list.
Normall the code for a find is cells.find(What:="Burgers"
I used the macro recorder and came up with this -
Dim sWord as string
sWord = "Field Name"
Cells.Find(What:=sWord, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Does anyone know a better way to check a workbook to find a word and how to change a counter if the word is found?
I haven't been having very much luck.
What I would like to do is use a find to locate words in a workbook and if they are found change a counter up by one, if not found go to the next word in the list.
Normall the code for a find is cells.find(What:="Burgers"
I used the macro recorder and came up with this -
Dim sWord as string
sWord = "Field Name"
Cells.Find(What:=sWord, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Does anyone know a better way to check a workbook to find a word and how to change a counter if the word is found?
I haven't been having very much luck.