I am modifiying some Project 2010 VBA modules that I did not write. My predecessor wrote a bit of code that catches an error, outputs the error message (and just that, no specifics compared to run-time or compile errors Project would catch) and ends the function. Is there a way to modify the following code to provide more description, such as line number, the problem variables, etc.?
Err_cmbMapNow_Click:
MsgBox Err.Description
Resume Exit_cmbMapNow_Click
I think the problem lies in an If statement that checks the file's type against whether or not it's an Enterprise-type Project. The error I'm getting is "The argument is not valid". I tried enforcing them to be Integers so the If statement is comparing integers, but that doesn't seem to work (if this statement is the problem). When I debug it, it stops at that statement and won't continue.