SanFelippo
Board Regular
- Joined
- Apr 4, 2017
- Messages
- 124
Hi,
I am so confused as to why I am getting this error, and have no idea what it means. The code I am running is so, sooooo simple, so I don't understand why it is erroring out.
When the code below is run (aka when something on the sheet is changed), and C5 equals 1, it does set B6 equal to "Not Applicable." However, right after it changes B6 to "Not Applicable", I get this error:
Run-time error '-2147417848 (80010108)
Method 'Value' of object 'Range' failed.
If I change the code so that it changes a different cell to "Not Applicable" though, it works. It seems to only be happening when I try and change Cell B6....
I am literally stumped here. This error never occurred on any of the other sheets in the workbook. Now however, if I try and run this code on any of the other sheets, this error pops up. It seems like it came out of nowhere.
Any help?
I am so confused as to why I am getting this error, and have no idea what it means. The code I am running is so, sooooo simple, so I don't understand why it is erroring out.
When the code below is run (aka when something on the sheet is changed), and C5 equals 1, it does set B6 equal to "Not Applicable." However, right after it changes B6 to "Not Applicable", I get this error:
Run-time error '-2147417848 (80010108)
Method 'Value' of object 'Range' failed.
If I change the code so that it changes a different cell to "Not Applicable" though, it works. It seems to only be happening when I try and change Cell B6....
I am literally stumped here. This error never occurred on any of the other sheets in the workbook. Now however, if I try and run this code on any of the other sheets, this error pops up. It seems like it came out of nowhere.
Any help?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'Application.EnableEvents = False
If Range("C5").Value = 1 Then
Range("B10").Value = "Not Applicable"
End If
'Application.EnableEvents = True
End Sub
Last edited: