Link to home
Start Free TrialLog in
Avatar of Andreas Hermle
Andreas HermleFlag for Germany

asked on

Apply a user-defined style to all paragraphs in several tables

Dear Experts:

I got hundreds of tables in the current document.

I would like to apply the following manual formatting properties to all paragraphs in all tables using a VBA macro:

Space before: 6 pt
Space after: 6 pt
Line spacing: 1.0

Or alternatively I would like to apply my user-defined paragraph style (MyStyle) containing all these properties to all paragraphs of all the tables in my current document.

Help is much appreciated.

Thank you very much in advance.

Regards, Andreas
SOLUTION
Avatar of Chris Bottomley
Chris Bottomley
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andreas Hermle

ASKER

Hi Chris,

works great! Thank you very much for your great support. If I wanted to apply a custom-defined paragraph style (MyCustomStyle) to all the tables. How would the code change?

Would be great if you could provide me with this alternative as well.

Thank you so much.

Regards, Andreas
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Chris,

thank you very much for your great help. Works as desired.

Regards, Andreas