How to copy user define ParaStyles in normal.dotm to other document using VBA?

Hello All,

Is it possible to copy all the new user define styles stored in normal.dotm into other documents using VBA macro?

Thanks,
Amzad
Amzad MohammadJava DeveloperAsked:
Who is Participating?
 
Rgonzo1971Connect With a Mentor Commented:
Hi,

pls try
Sub ImportStylesFromNormal_Dot()

  ActiveDocument.CopyStylesFromTemplate Template:= _
        "C:\Users\theUser\AppData\Roaming\Microsoft\Templates\Normal.dotm" ' change folder
        
End Sub

Open in new window

Regards
0
 
Amzad MohammadJava DeveloperAuthor Commented:
Thank you so much. It's working.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.