Hello
yes the password is correct, its the same password for all sheets, as i said its the original code and has been working for well over a year.
There is event code on that particular sheet, but i have never had a problem with this sheet before, it just seem to start happening
The code on the sheet is as follows
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cell As Range
Application.EnableEvents = False
ActiveSheet.Unprotect Password:="gideon"
For Each cell In Target
If Not Intersect(cell, Range("G2:G3000,H2:H3000,I2:J3000,M2:P3000")) Is Nothing Then
If Application.WorksheetFunction.IsText(cell.Value) Then _
cell.Value = UCase(cell.Value)
ElseIf Not Intersect(cell, Range("D2:D10000")) Is Nothing Then
If cell = "" Then
Cells(cell.Row, "E") = ""
Else
Cells(cell.Row, "E").FormulaArray = "=MAX(IF(ISNUMBER(0+MID(RC[-1],1,ROW(R1:R4))),0+MID(RC4,1,ROW(R1:R4))))" _
& "+IF(ISNUMBER(MATCH(RIGHT(RC[-1],1),R2C24:R27C24,0)),VLOOKUP(RIGHT(RC[-1],1),R2C24:R27C25,2,0)/10000,0)"
End If
End If
Next cell
ActiveSheet.Protect Password:="gideon"
Application.EnableEvents = True
End Sub
But as i said, never had problems with this before, the row copies over, but with missing formula and the parent sheet does not protect it self again.
Is there anything wrong witht he code it self..?
Bookmarks