I have the below code attached to a workseet which updates a text box with a figure when the user enters any figure in a cell :
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Application.ScreenUpdating = False
If Sheets("DataSheet"
.Range("F20"
.Value = "False" Then
ActiveSheet.Unprotect Password:="r3s0urc3"
ActiveSheet.Shapes("txtHoursAvailable"
.Select
Selection.Characters.Text = Range("D1"
.Value & " Hours Available"
ActiveSheet.Protect Password:="r3s0urc3"
End If
End Sub
The problem occurs if the user copies/pastespecials a row of figures - Excel hangs until I right click on the taskbar and choose to close.
Then Excel seems to recover itself and asks me 'do I want to save changes' etc. I say No and everything is back to normal.
Any ideas ?
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Application.ScreenUpdating = False
If Sheets("DataSheet"
ActiveSheet.Unprotect Password:="r3s0urc3"
ActiveSheet.Shapes("txtHoursAvailable"
Selection.Characters.Text = Range("D1"
ActiveSheet.Protect Password:="r3s0urc3"
End If
End Sub
The problem occurs if the user copies/pastespecials a row of figures - Excel hangs until I right click on the taskbar and choose to close.
Then Excel seems to recover itself and asks me 'do I want to save changes' etc. I say No and everything is back to normal.
Any ideas ?