[Solved] Can't execute macro in file.ods from command line
Posted: Sun May 24, 2009 12:35 pm
In my Calc-file I have the basic macro:
Sub sMySub
msgbox "hello"
End Sub
I tried following lines in the XP - command window while in the map "C:\Program Files\OpenOffice.org 3\program>"
soffice.exe "macro:///Standard.Module1.sMySub"
soffice.exe "macro:///[My File.ods].Standard.Module1.sMySub"
soffice.exe "C:\My Documents\My File.ODS" "macro:///Standard.Module1.sMySub"
soffice.exe "C:\My Documents\My File.ODS" "macro:///[My File.ods].Standard.Module1.sMySub"
soffice.exe "C:\My Documents\My File.ODS" "macro:///My File.ods.Standard.Module1.sMySub"
Nothing works except switching the active window to my already running "My File.ods" with the last 3 examples above...
What am I doing wrong?
Sub sMySub
msgbox "hello"
End Sub
I tried following lines in the XP - command window while in the map "C:\Program Files\OpenOffice.org 3\program>"
soffice.exe "macro:///Standard.Module1.sMySub"
soffice.exe "macro:///[My File.ods].Standard.Module1.sMySub"
soffice.exe "C:\My Documents\My File.ODS" "macro:///Standard.Module1.sMySub"
soffice.exe "C:\My Documents\My File.ODS" "macro:///[My File.ods].Standard.Module1.sMySub"
soffice.exe "C:\My Documents\My File.ODS" "macro:///My File.ods.Standard.Module1.sMySub"
Nothing works except switching the active window to my already running "My File.ods" with the last 3 examples above...
What am I doing wrong?