JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 788
- Office Version
- 365
- Platform
- Windows
Hi,
i have the following sheet code:
Problem i have is when the file fails to save (sometimes happens on network)
everytime i enter into column F the workbook gets very slow at calculating
Im wondering if i havent handled this error properly? Or is there anything i can change
i have the following sheet code:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo myerror
With Application
.EnableEvents = False
.ScreenUpdating = False
If Target.Cells.Count = 1 Then
If Left(Target.Address, 3) = "$F$" And Target <> "" Then
Range("H" & Target.Row).Value = Now
ThisWorkbook.Save
End If
End If
.EnableEvents = True
.ScreenUpdating = True
End With
myerror:
Application.EnableEvents = True
Application.ScreenUpdating = True
Exit Sub
End Sub
Problem i have is when the file fails to save (sometimes happens on network)
everytime i enter into column F the workbook gets very slow at calculating
Im wondering if i havent handled this error properly? Or is there anything i can change