ChrisMcIntyre
New Member
- Joined
- Jan 6, 2022
- Messages
- 37
- Office Version
- 365
- 2016
- Platform
- Windows
Hi all,
Can anyone help me with the code to hide all rows downwards of a row I have a key word in please.
I have a worksheet that can have varying numbers of rows. I have hidden the word "Last" in column A301, which is the last row on the sheet in it's undedited form. What I want to do is trigger a code to hide all the rows from the one that has the word "Last" in it, downwards to the very bottom.
So as an example, if the row with the word "Last" in happens to be row 400 after the sheet has been edited (So "Last" is in A400) I need all rows from 401 to the very bottom all hidden when I click a macro button.
Hope I explained that well, apologiesif now, and I appreciate any help you can offer.
Thanks.
Can anyone help me with the code to hide all rows downwards of a row I have a key word in please.
I have a worksheet that can have varying numbers of rows. I have hidden the word "Last" in column A301, which is the last row on the sheet in it's undedited form. What I want to do is trigger a code to hide all the rows from the one that has the word "Last" in it, downwards to the very bottom.
So as an example, if the row with the word "Last" in happens to be row 400 after the sheet has been edited (So "Last" is in A400) I need all rows from 401 to the very bottom all hidden when I click a macro button.
Hope I explained that well, apologiesif now, and I appreciate any help you can offer.
Thanks.