Trying to create code for normal.dotx RRS feed

  • Question

  • Hi

    I have a style and want it to populate all files in the past as well as the new ones.  I put it into Normal.dotx and then got this code:

    Sub AutoOpen()


        Dim strMyStyle As String
        strMyStyle = "MyNumbering"

        Application.OrganizerCopy Source:=ThisDocument.FullName _
            , Destination:=ActiveDocument.FullName, Name:=strMyStyle, _

    End Sub

    However, I get an error with a "command failed".  I am unsure if this is the correct code to use. Any suggestions?  Thanks...

    Wednesday, May 9, 2018 2:02 AM

All replies