I want to add a shortcut to quickly set a cell’s language, but when I record a macro to do this the actual language isn’t populated.
How can I find the available languages I can pass to .uno:Language
sub TurnJapanese
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Language"
args1(0).Value = ???
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Language", "", 0, Array())
end sub