First time here? Check out the FAQ!
asked 2012-10-06 01:01:09 +0200Frank1000
Hi, when I try to record a macro that opens a certain document, the little macro window disappears as soon as the document is opened ... thus not having recorded the macro.
Anyone who can help me in this ?
answered 2012-10-06 01:57:37 +0200w_whalley
That topic has been addressed on an OpenOffice forum. I found their solution to work if I omitted the Empty()=Array() line, i.e.
sub Main filename="/home/bill/filename.odt" filename=convertToURL(filename) rem Empty() = Array() testDoc=StarDesktop.loadComponentFromURL(FileName, "_blank",0,array()) end sub
answered 2012-10-06 04:50:39 +0200Frank1000
thx, works cake. Probably my google phrase was to off to find the article ... but with that little coding I can achieve, I would have failed at the "rem" you've set anyways.
Looking for someone who can help me to set up some macros to write / retrieve from table and some formatting etc. for 1 hour skype session ...
LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!
Asked: 2012-10-06 01:01:09 +0200
Seen: 95 times
Last updated: Oct 06 '12