Hi guys
This code works but its as slow as a wet week. Could anyone help write this so it runs much quicker.
Thank you
This code works but its as slow as a wet week. Could anyone help write this so it runs much quicker.
Thank you
VBA Code:
Sub OptimizeVBA(isOn As Boolean)
Application.Calculation = IIf(isOn, xlCalculationManual, xlCalculationAutomatic)
Application.EnableEvents = Not (isOn)
Application.ScreenUpdating = Not (isOn)
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
trow = Target.Row
OptimizeVBA True
Dim emp As Range
Set emp = Cells(trow, 13)
If Target.Column = 13 Then
If IsEmpty(emp) = True Then
With Sheets("Frame Sets")
.Range(.Cells(trow, 18), .Cells(trow, 37)) = ""
End With
End If
End If
OptimizeVBA False
End Sub