Changing Line Spacing Type of all text to Exact with VBA

Hi all,

In a drawing I am working on all text has line spacing type "Exact From Line Top". I would like to change this to "Exact". However, I would like to do it by means of VBA if possible. Could somebody help me with this?

 

Many thanks in advance.

 

Kind Regards,

 

Loukas

Parents Reply Children
  • Hi Jan,

    Many thanks for the code and sorry for the late reply (too many bank holidays lately in the UK!)

    I just tried the code you sent me. It changes the line spacing to 2 and the line spacing type to Exact. However, it moves the second line of text (if it is let's say a two line text) to an area far away from the first line of the text, either above or below from the original position. It leaves the first line of the text at its' original position.

    Any ideas why it is doing that?

    Just figured the problem out. It was a matter of switching to the correct Units.

    Again, many thanks for your help. I really appreciate it.

    Kind Regards,

    Loukas