Hello, I made a macro to pick multiple points, the problem is if I right click in the moment when I have to pick a point it gives me a run-time error and stops at this line:
varPnt = ThisDrawing.Utility.GetPoint(, "Punct de preluat: ")
The macro works if I normaly click (left click), but if I right click by mistake I run into this problem and I would like to prevent this.
Solved! Go to Solution.
Solved by Alfred.NESWADBA. Go to Solution.
Hi,
you can set the statement before your GetPoint call:
On Error Resume Next
and after the line with GetPoint evaluate Err.Number or Err.Description to see what type of error occured.
To finish that type of error handling (ignoring the error and resume with the next line) use this line:
On Error Goto 0
HTH, - alfred -