Hi there,
New to VBA and the forum. Have a little problem. I have entered some VBA code into my spreadsheet that avoids a CURRENCY PRICE being added to a column if the adjacent column DROPDOWN OPTION does not have a value. It pops up an ERROR MSG and then clears the entered value.
Whenever i try to delete a range of cells more than 1 i get the RUN TIME ERROR 13 TYPE MISMATCH.
Any ideas?
New to VBA and the forum. Have a little problem. I have entered some VBA code into my spreadsheet that avoids a CURRENCY PRICE being added to a column if the adjacent column DROPDOWN OPTION does not have a value. It pops up an ERROR MSG and then clears the entered value.
Whenever i try to delete a range of cells more than 1 i get the RUN TIME ERROR 13 TYPE MISMATCH.
Any ideas?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If (Target.Column = 6) And Target <> "" And (Target.Row < 37 And Target.Row > 6) Then
If Cells(Target.Row, "e").Value = "" Then
Application.EnableEvents = False
Target.ClearContents
Application.EnableEvents = True
MsgBox "Please select the correct TYPE from the drop down menu"
End If
End If
If (Target.Column = 8) And Target <> "" And (Target.Row < 37 And Target.Row > 6) Then
If Cells(Target.Row, "G").Value = "" Then
Application.EnableEvents = False
Target.ClearContents
Application.EnableEvents = True
MsgBox "Please select the correct TYPE from the drop down menu"
End If
End If