bearcub
Well-known Member
- Joined
- May 18, 2005
- Messages
- 734
- Office Version
- 365
- 2013
- 2010
- 2007
- Platform
- Windows
I recorded this macro the other day but it takes about 30 seconds to run. I tried to clean it up the best i could but I'm wondering if using a loop might be more efficient.
Code:
Sub ClearBlanksSiteRepsRADelegates()
'
' ClearBlanksSiteRepsRADelegates Macro
' Clear sheet of non leadership positions before copying to appropirate SCC
'
'
ActiveSheet.Range("$A$1:$BX$69000").AutoFilter FIELD:=43, Criteria1:="="
ActiveCell.Offset(1, 0).Rows("1:69000").EntireRow.Select
ActiveCell.Offset(1, 15).Range("A1").Activate
Selection.Delete Shift:=xlUp
ActiveSheet.Range("$A$1:$BX$4680").AutoFilter FIELD:=43, Criteria1:= _
"=*Site*", Operator:=xlOr, Criteria2:="=*RA Delegate*"
Selection.Delete Shift:=xlUp
ActiveSheet.Range("$A$1:$BX$3500").AutoFilter FIELD:=43
ActiveSheet.AutoFilterMode = "False"
End Sub
[code]/
The macro is to remove some positions in column 43 (AQ).
Is there a more efficient way to do this so it won't take as much time to run?
Thank you for your help.,
Michael