Hi,
I am pretty new to using VBA and macros in excel. I currently have a large spreadsheet which is used for testing. I have multiple worksheets and on each sheet, there are many rows each containing test procedures and outcomes.
What I'm trying to do:
Some of the tests in each sheet only apply to certain products. In each row the test is detailed, the outcome can be recorded, and the products that the test applies to are listed e.g.
Column 1 - Test Procedure
Column 2 - Outcome
Column 3 - ProductA, ProductC etc
I need the macro to look at Column 3 and search for text relating to each product as I specify elsewhere in the sheet. I will create a button on the first sheet named as the product I want to select. This would then go through each row on each seet in the work book and hide any rows where the Product name is NOT listed. Here is what I have so far:
At the moment this code works if the ONLY text in the cells is "ProductA". This doesnt work if multiple products are listed in the cell e.g. "ProductA, ProductB".Please Login or Register to view this content.
I would also like the macro to ignore any blank cells.
I thought it would be easy but with my limited knowledge I am completely stuck.
Any help would be much appreciated!
Bookmarks