Looking for blanks or zero or strings cells in a range

Mauricio Samy Silva

New Member
Joined
Aug 13, 2002
Messages
25
Hello,
The above command line looks for blanks cells in range G2:G157 and hidde the row.
I need look for cells whith names (strings)in it and others whith 0 (zero) in it.
Help me whith the code!!!!
Many thanks

ActiveSheet.[G42:G157].SpecialCells(xlCellTypeBlanks).EntireRow.Hidden = True

Mauricio
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
hope this helps
steve w


For Each Cell In Range("G42:G157")
Cell.Select
If Cell.Value = "" Or Cell.Value = 0 Then
Selection.EntireRow.Hidden = True
End If
Next
 
Upvote 0

Forum statistics

Threads
1,222,313
Messages
6,165,293
Members
451,950
Latest member
WH2000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top