A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi Nagul1,
I'm Femi and I'd be happy to help you with your question.
Kindly try the macro below and let me know if it works:
Sub HideRowsIfCellsBlank() 'Hide rows 9 to 15 if cell K9 is blank If IsEmpty(Range("K9")) Then Rows("9:15"). EntireRow.Hidden = True End If
'Hide rows 18 to 27 if cell K18 is blank If IsEmpty(Range("K18")) Then Rows("18:27"). EntireRow.Hidden = True End If End Sub
NOTE: This macro was made based on the conditions stated above. You can modify based on your preferences.
Best Regards,
Femi