Hi guys
Im trying to hide rows that have the numbers 1 or 2 in column A
I can get it to work for one number but cant seem to get it to see the number 2 as well.
This is what i got so far.
Please Login or Register to view this content.
Hi guys
Im trying to hide rows that have the numbers 1 or 2 in column A
I can get it to work for one number but cant seem to get it to see the number 2 as well.
This is what i got so far.
Please Login or Register to view this content.
Last edited by berty2000; 05-15-2020 at 06:27 AM. Reason: missed code tags off
Administrative Note:
We would very much like to help you with your query, however you need to include code tags around your code.
Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.
Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Added the code tags
Hi,
your codeline just not respects the Logic and the coding logic …
But as a loop is not the best way to go, why don't you use an easy filter or advanced filter ?!
If this is the way you are goin I think the following will work - note the change in the IF statement
I don't think AND would have worked in that situation.Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks