Hi everybody,
I use the following code to hide blank rows in the active sheet,,
I want it to work with all sheets,
Can you help me in this case,
Thank you,Please Login or Register to view this content.
Hi everybody,
I use the following code to hide blank rows in the active sheet,,
I want it to work with all sheets,
Can you help me in this case,
Thank you,Please Login or Register to view this content.
You can try with this code (using most of your source):
Sub Hide()
With ActiveWorkbook
For Each Sh In .Sheets
Sh.Select
For a = 1 To 1000
BK = Sh.Cells(a, 1)
If BK = "" Then
Sh.Rows(a).Hidden = True
End If
Next
Next
End With
End Sub
Just a minor tinkering with Antoaka's code: No need to select sheets...it slows code down, if infinitesminally.
Please Login or Register to view this content.
HTH
Myles
...constantly looking for the smoother pebble while the whole ocean of truth lies before me.
Thank you so much Mr. antoka05 for your fast reply and perfect code,
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks