Ik heb bij OOo 1.9.79 een macro opgenomen die de inhoud van de cel links zou moeten uitlijnen. Dat gebeurd echter niet. Onderstaand het betreffende deel van de code:

sub mcrDatumOpmaakNL
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 ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "ToPoint"
args1(0).Value = "$B$30"

dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args1())

rem ----------------------------------------------------------------------
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = "HorizontalAlignment"
args2(0).Value = com.sun.star.table.CellHoriJustify.LEFT

dispatcher.executeDispatch(document, ".uno:HorizontalAlignment", "", 0, args2())

rem --

Iemand een idee? De zelfde code werkt in OOo1.1.2 wel.

groet, Herman

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Antwoord per e-mail aan