> I am looking everywhere, but i cannot find a useful way to record a
> macro in publisher.
That is because there is no Macro Recorder.
> My goal is to try to catch what kind of "code" is using publisher to
> perform a "distributed text" on a selected paragraph and try to do the
> same on Word.
Did you try Word's macro recorder?
> Word has a similar function "distributed text" but is not working nicely
> (the last line of the paragraph should not be distributed, word does).
Have you ended the paragraph with a hard return (paragraph mark) or soft
return (line break)?
Are you setting the paragraph format to Justify?

Signature
Ed Bennett - MVP Microsoft Publisher
http://ed.mvps.org
Pascal Brax - 19 Feb 2007 16:53 GMT
Ed Bennett ha scritto:
> That is because there is no Macro Recorder.
I had that feeling, but i thought i was not smart enough to find it.
>> My goal is to try to catch what kind of "code" is using publisher to
>> perform a "distributed text" on a selected paragraph and try to do the
>> same on Word.
>
> Did you try Word's macro recorder?
Yes I did, but as i've said, Word's "distributed text" task does not
work so good like Publisher's does.
> Have you ended the paragraph with a hard return (paragraph mark) or soft
> return (line break)?
I tried both ways without a good result.
> Are you setting the paragraph format to Justify?
No, i'm trying to set the paragraph to "distributed" (CTRL+SHIFT+J).
Justify expands the space between the words,
Distributed expands the space between every char (letters and spaces).
Thank you for your interest in this matter. :)

Signature
Pascal Brax, BOFH
Ed Bennett - 19 Feb 2007 23:54 GMT
> Yes I did, but as i've said, Word's "distributed text" task does not
> work so good like Publisher's does.
In each program you can only use the functionality that is available in
that program. You can't add functionality from one program to another
simply by using the VBA calls from the first program in the second.

Signature
Ed Bennett - MVP Microsoft Publisher
http://ed.mvps.org
Pascal Brax - 21 Feb 2007 13:10 GMT
Ed Bennett ha scritto:
> In each program you can only use the functionality that is available in
> that program. You can't add functionality from one program to another
> simply by using the VBA calls from the first program in the second.
This means i should give up and don't use the "distributed text" in Word
anymore.
what a pity.

Signature
Pascal Brax, BOFH