This is a basic question, but I haven't found any solutions after a Google search.
Here's what I'm trying to do:
I can't get the MsgBox to launch properly: it's highlighted in red. I think this is a syntax issue.
Sub DataProcessingExperiment7
On Error GoTo ErrorHandler
...
ErrorHandler
MsgBox("Error detected" & vbNewLine & "Error" & Err.Number & ": " & Err.Description, vbCritical, "Error Handler: Error" & Err.Number, , , asVbMsgBoxResult)
You are missing a colon it should be
ErrorHandler: