I need to get the VBA code where it looks in column P, starting at Row 4 and down... AND only looks at only the visible rows in order to get a count for each string that it is looking for
Column P contains these 'codes' that represent a checkbox on a userform that was previously checked and if it was checked, then it places that 'code' into the cell in column P.
There could be 1 code in each cell, or maybe up to 8 or 9:
(example: the string "EHS1A" shows up in row 6 where there are only 2 'codes', and also in row 7 where there are 8 codes.)
I believe i will need to have a variable for each one of these 'codes' and it will represent the number of times that the code occurs in the specific range each time it is searched. (I have 26 different 'codes' (such as'EHS1A') that will be searced for in column P and the total for each one will be shown in Row 1 so the user will be able to see how many occurrences for each one is shown on the worksheet.... hope that makes sense.)
I know I will need to use the 'if like' in my VBA code to locate each part of the string such as "EHS1A"... but, I cannot figure out how to search for it just in the visible cells ("SpecialCells(xlCellTypeVisible)") within the required range using the " If Cell Like "*EHS1A*" Then " VBA code.
Thanks in advance for any help that anyone can help me with. Thank you
Column P contains these 'codes' that represent a checkbox on a userform that was previously checked and if it was checked, then it places that 'code' into the cell in column P.
There could be 1 code in each cell, or maybe up to 8 or 9:
(example: the string "EHS1A" shows up in row 6 where there are only 2 'codes', and also in row 7 where there are 8 codes.)
I believe i will need to have a variable for each one of these 'codes' and it will represent the number of times that the code occurs in the specific range each time it is searched. (I have 26 different 'codes' (such as'EHS1A') that will be searced for in column P and the total for each one will be shown in Row 1 so the user will be able to see how many occurrences for each one is shown on the worksheet.... hope that makes sense.)
I know I will need to use the 'if like' in my VBA code to locate each part of the string such as "EHS1A"... but, I cannot figure out how to search for it just in the visible cells ("SpecialCells(xlCellTypeVisible)") within the required range using the " If Cell Like "*EHS1A*" Then " VBA code.
Thanks in advance for any help that anyone can help me with. Thank you