I’m trying to use the “Content Changed” Sheet Event to run a macro.
Is the event structure for the macro input variables specified anywhere? I can’t seem to find any documentation for it. i.e. in the code example below, where can I see what properties I should expect oEvent
to have?
Semi-related, but is there a way to check if the macro input event has a certain property? I have a macro that looks like this for the “Content Changed” sheet event:
Sub SheetChange(oEvent)
MsgBox "Row: " & oEvent.CellAddress.Row
End Sub
And this works as expected if content in a single cell is modified, but if I copy a row and paste it over a different row, the macro throws an error saying that the “CellAddress” property doesn’t exist. How can I check for this before trying to access a sub-property on it?