Hi the below code takes 6-7 seconds to run, is there anything i can do to make it faster?
Code:
Private Sub CommandButton5_Click()
With Application
.DisplayAlerts = False
.ScreenUpdating = False
.Calculation = xlCalculationManual
End With
'Unshare workbook
If ThisWorkbook.MultiUserEditing Then
ThisWorkbook.ExclusiveAccess
End If
If ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
'Share workbook
ThisWorkbook.SaveAs ThisWorkbook.FullName, accessmode:=xlShared
With Application
.DisplayAlerts = True
.ScreenUpdating = True
.Calculation = xlAutomatic
End With
End Sub