Hi,
can someone kindly help me optimise the following slow code.... it is currently taking upto 10s..... is there a way to make it real fast and furious?
Thanks in advance....
Kind Regards,
can someone kindly help me optimise the following slow code.... it is currently taking upto 10s..... is there a way to make it real fast and furious?
HTML:
Sub ThirdRanked()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
Dim rFind As Range
Dim lRow As Long
If Sheets("ThirdRankFinder").Range("C3") = "" Then
MsgBox ("Select the Skill Category")
Exit Sub
Else
Sheets("AllSkills").Select
Rows("1:2").Select
Selection.Delete Shift:=xlUp
Sheets("DataSheet").Range("GenInfo").Copy
With Sheets("AllSkillS")
.Range("A1").PasteSpecial xlPasteAll, _
xlPasteSpecialOperationNone, False, True
Application.CutCopyMode = False
.Columns("J:Xfd").ClearContents
End With
With Sheets("DataSheet")
Set rFind = .Range("A1:A" & Rows.Count).Find(What:=Sheets("ThirdRankFinder").Range("C5"), _
LookIn:=xlValues, Lookat:=xlWhole)
If rFind Is Nothing Then MsgBox "Selected Entry Not Found!": Exit Sub
lRow = rFind.Row
.Range(.Cells(lRow, 2), .Cells(lRow, Columns.Count)).Copy
Sheets("AllSkills").Cells(1, Columns.Count).End(xlToLeft).Offset(, 1).PasteSpecial xlPasteAll, _
xlPasteSpecialOperationNone, False, True
Application.CutCopyMode = False
End With
Call FormatSkills1
End If
' applying the filter for rank three
Sheets("AllSkills").Select
Range("A2:J2").Select
Selection.AutoFilter
ActiveSheet.Range("$A$2:$J$8").AutoFilter Field:=10, Criteria1:="3"
Columns("A:J").Copy
Sheets("ThirdRank").Select
Columns("A:J").Select
Range("A2").Activate
ActiveSheet.Paste
Range("A1:J1").Select
Sheets("AllSkills").Select
Range("A2:J2").Select
Selection.AutoFilter
Sheets("ThirdRank").Select
Range("A2").Activate
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True
Application.CutCopyMode = False
End Sub
Thanks in advance....
Kind Regards,