View Single Post
 
Old 10-18-2019, 02:44 AM
dita dita is offline Windows XP Office 2010 64bit
Advanced Beginner
 
Join Date: Apr 2018
Posts: 34
dita is on a distinguished road
Default Macro for batch process

Hello everyone,


I have created a macro to change the font properties in a document but would like to run the same macro in all DOC files placed in a specific folder.


Is there any code to do that in a batch process?


If yes, which code should I use for that and where/how to include it in the macro below?


Note that Macro should work for .DOC formats although I also will be use it for .DOCX.


Many thanks!


Sub Macro1()
With ActiveDocument.Styles("Normal").Font
.NameFarEast = "Calibri"
End With
With ActiveDocument.Styles("Normal")
.AutomaticallyUpdate = False
.BaseStyle = ""
.NextParagraphStyle = "Normal"
End With
End Sub
Reply With Quote