I have a macro that is supposed to open an excel spreadsheet and enable change tracking. oDoc is the spreadsheet.args1() is a com.sun.star.beans.PropertyValue
The line
dispatcher.executeDispatch(oDoc, ".uno:TrackChanges", "", 0, args1())
Throws the error:
BASIC runtime error.
An exception occurred
Type: com.sun.star.lang.IllegalArgumentException
Message: cannot coerce argument type during corereflection call:
arg no.: 0 expected: “com.sun.star.frame.XDispatchProvider” actual: “com.sun.star.lang.XComponent”.
Is what I’m trying to do even possible? I’ve used this approach before with Writer documents.