Thread: Speed Up Macro
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sean[_15_] Sean[_15_] is offline
external usenet poster
 
Posts: 25
Default Speed Up Macro

I have a macro that takes over 45 min to run at times. Is there a better way
to do this, or speed it up at all. The macro I use is as follows, it does
need to be specific to the column and the rows that it is currently set to...

Sub Button15_Click()
ActiveSheet.Unprotect
For Each cell In Range("AL35:AL609")
cell.EntireRow.Hidden = cell.Value = 0
Next cell
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub

Thanks,

Sean