mike_ate_a_pie
Board Regular
- Joined
- Sep 25, 2009
- Messages
- 69
Hi all,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>
I have this macro that hides rows when the value is “0”.
<o
></o
>
At the moment it’s not running very smoothly and updating quickly, i.e the Application.Sreenupdating isn’t working correctly.
<o
></o
>
I would also like to add run this in multiple sheets at the same time. Is this also possible?
<o
></o
>
Sub HideRows()
<o
></o
>
Dim cell As Range
<o
></o
>
Application.ScreenUpdating = False
<o
></o
>
For Each cell In Range("AU6:AU100")
cell.EntireRow.Hidden = cell.Value = 0
<o
></o
>
Application.ScreenUpdating = True
<o
></o
>
Next cell
<o
></o
>
End Sub
<o
></o
>
<o
></o
>
Any help appreciated.
<o
></o
>
Thanks in advance,
<o
></o
>
Mike
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com




I have this macro that hides rows when the value is “0”.
<o


At the moment it’s not running very smoothly and updating quickly, i.e the Application.Sreenupdating isn’t working correctly.
<o


I would also like to add run this in multiple sheets at the same time. Is this also possible?
<o


Sub HideRows()
<o


Dim cell As Range
<o


Application.ScreenUpdating = False
<o


For Each cell In Range("AU6:AU100")
cell.EntireRow.Hidden = cell.Value = 0
<o


Application.ScreenUpdating = True
<o


Next cell
<o


End Sub
<o


<o


Any help appreciated.
<o


Thanks in advance,
<o


Mike