I have a macro that used to work very reliably, but for some reason, it’s now getting hung up. The line
oRegistryKeyContent = oConfigProvider.createInstanceWithArguments(“com.sun.star.configuration.ConfigurationUpdateAccess”, aNodePath())
Keeps throwing a runtime error of Type: com.sun.star.uno.RuntimeException
FYI, that line is preceded by
dim aNodePath(0) as new com.sun.star.beans.PropertyValue
With aNodePath(0)
.Name = “nodepath”
.Value = “/org.openoffice.Office.Common/Path/Info”
End With
And I’m running LO 7.0.6.2
I’m attaching a writer document that includes the macro. The problem arises in the SelectFile function, which is triggered by the IssueDocument, ReviewDocument, or EditDocument Macros. I’m open to anyone who has a better approach to what I’m accomplishing (or trying) with the contents of this module.
Macro File Selection example.odt (11.4 KB)