andrefenti
New Member
- Joined
- Jun 5, 2018
- Messages
- 4
Hi everyone!
I have a code I am trying to run, but it keeps showing this message:
"Compile Error:
Invalid use of property"
_________________________
This is the code:
Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 12 Then
Sheets("Display TRT").Select
Call Comments
MsgBox "It worked"
End If
End Sub
________________________
"Comments" is a Sub that runs with no problems when I click on na option button.
I want this macro to run whenever I change any cell on the 12th column of the sheet.
When I take off the "Call Comments" line, the problem does not happen.
Does anyone know how I can fix this??
Att.,
André Fenti Yamamoto
I have a code I am trying to run, but it keeps showing this message:
"Compile Error:
Invalid use of property"
_________________________
This is the code:
Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 12 Then
Sheets("Display TRT").Select
Call Comments
MsgBox "It worked"
End If
End Sub
________________________
"Comments" is a Sub that runs with no problems when I click on na option button.
I want this macro to run whenever I change any cell on the 12th column of the sheet.
When I take off the "Call Comments" line, the problem does not happen.
Does anyone know how I can fix this??
Att.,
André Fenti Yamamoto