ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   set row height to zero if the condition satisfy (https://www.excelbanter.com/excel-discussion-misc-queries/157221-set-row-height-zero-if-condition-satisfy.html)

Rishi P.S.

set row height to zero if the condition satisfy
 
Dear friends,
Please let me know, how to set the row height into zero if the condition
satisfy

Mike H

set row height to zero if the condition satisfy
 
A macro maybe:-
Sub sonic()
LastrowColA = Range("A65536").End(xlUp).Row
For x = LastrowColA To 1 Step -1
Cells(x, 1).Select
If ActiveCell.Value = "mycriteria" Then
ActiveCell.EntireRow.Hidden = True
End If
Next x
End Sub

Mike


"Rishi P.S." wrote:

Dear friends,
Please let me know, how to set the row height into zero if the condition
satisfy



All times are GMT +1. The time now is 04:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com