I had a similar result when trying to get a macro to run to insert a TOC. I even tried uncommenting the line (ie, removing the "rem"). All that happened then was the dialog to set the TOC particulars was left on the screen. Nothing was actually executed.
I would suggest that you have a look at http://www.pitonyak.org/oo.php for a excellent resource on macro's and the BASIC language used by OOo. (I will once I've got enough time as well). /paul On 5/10/05, Ulf Lamping <[EMAIL PROTECTED]> wrote: > Hi List! > > To format columns, I use Format/Columns from the Writer menu and that's > working well. > > Then I've tried to record a macro to set the number of columns in Writer > that way. > > Unfortunately, all I got (beside the usual start/end parts of the macro) > was just a commented line: > > rem ---------------------------------------------------------------------- > rem dispatcher.executeDispatch(document, ".uno:FormatColumns", "", 0, > Array()) > > I've tried to find the FormatColumns function in the API documentation at: > > http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html > > but didn't found this function there. > > A general search at OpenOffice.org and also Google didn't gave me any > other useful info :-( > > Is this function currently not available? > > Could someone tell me how to call this function or point me to the right > place in the API docs? > > What I'm really missing is the parameter profile to use and a code > snippet would be really useful ... > > Regards, ULFL > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
