I have a worksheet with a bunch of rows...
I'd like to be able to hide the entire row if the value in cell Nx is less than the value in Mx.
Is this doable in VBA?
I have a worksheet with a bunch of rows...
I'd like to be able to hide the entire row if the value in cell Nx is less than the value in Mx.
Is this doable in VBA?
Hello nwpassage,
Change the cell "N1"and "M1"to what you want to use.
How to Paste a Macro into a WorksheetPlease Login or Register to view this content.
- Copy the macro with Ctrl+C.
- Right Click the Sheet Tab at the bottom of the worksheet.
- Click View Code
- Paste the macro into the module with Ctrl+V.
- Save the macro using Ctrl+S
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Star below the post.3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Here's a macro to do the job: (Assuming the data starts on row 4)
The commented macro code and sample Excel file is attached…Please Login or Register to view this content.
Last edited by StuCram; 05-23-2015 at 08:13 PM. Reason: Spelling correction in comment; change the IF order
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks