PDA

View Full Version : [SOLVED:] Change Bibiliography Style with VBA



Paul_Hossler
08-18-2018, 05:25 AM
Is there any way to change the bibliography style with VBA, say from APA to MLA?

22731

The macro recorder just records an empty macro


Edit -- Inside the docx in customXml\item1.xml …

22733

… I found a reference to the bibliographic style in XML, but I have no idea how to edit it

macropod
08-18-2018, 02:39 PM
You should be able to do it with code like:
ActiveDocument.Bibliography.BibliographyStyle = "MLA Seventh Edition"

Paul_Hossler
08-18-2018, 03:43 PM
Thanks

The macro recorder didn't give me anything

Using the Watch Window and knowing what to look for, I could see the properties

MUCH easier than trying to mess with the CustomXml

Thanks again