I'm using OO 2.0.3 on Win XP2 Pro/SP2.

I opened a new Writer document and went to Tools/Macro/Record. The little "Stop 
Recording" button appeared as expected.

I then went through the steps, using the mouse, to change language from my 
usual British English to American English (I have both properly installed).

Having done this I hit the Stop Recording button and saved the macro. I named 
it "American" and saved it in My Macros/Standard/Module1. 

I then reset the language to British English (it had obviously been changed by 
the macro recording process).

I then went to Tools/Macros/Run and ran the macro I had just recorded.

Nothing happened. The language did *not* change.

When I looked at the macro in the editor, all I found was:

-----------------  start of macro definition -----------------

sub American
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")

rem ----------------------------------------------------------------------
rem dispatcher.executeDispatch(document, ".uno:OptionsTreeDialog", "", 0, 
Array())
end sub

----------------------- end of macro definition ----------------

Clearly there is no code in the above to change the language setting.

What am I doing wrong please?

Harold Fuchs
London, England

Reply via email to