Prefix: This is my first post and my first few days into creating macros and using VBA. I've been searching all morning and can't seem to find what I need.
In VBA, I am trying to find multiple strings of text in a certain column (column A in this case) and select all of the cells that contain any of those strings. How would I find and select the cells that contain P1S, P2S, P4S, or P6S? (In this case selecting A2, A4, A5, and A6 all at the same time). I will then run:
Range().Offset(0, 1).Select
Selection.Delete Shift:=xlUp
To delete the selected cells along with the qty's in column B.
Thanks in advance!
In VBA, I am trying to find multiple strings of text in a certain column (column A in this case) and select all of the cells that contain any of those strings. How would I find and select the cells that contain P1S, P2S, P4S, or P6S? (In this case selecting A2, A4, A5, and A6 all at the same time). I will then run:
Range().Offset(0, 1).Select
Selection.Delete Shift:=xlUp
To delete the selected cells along with the qty's in column B.
Thanks in advance!