I’m writing some VBA macros and would like to suppress any pop-up errors that occur. For instance, let’s say I have a block of code that looks like this:
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "ToPoint"
args1(0).Value = "junk"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args1())
I would like that to fail silently, but I get an “Invalid range” pop-up instead. Is there a way to turn these pop-ups off?