View Single Post
 
Old 06-19-2017, 05:59 PM
Artmax Artmax is offline Windows 10 Office 2016
Novice
 
Join Date: Jun 2017
Posts: 7
Artmax is on a distinguished road
Default

Wow, Thank you so much.
That Batch Processor is incredible.

I had a few issues with the autotext formatting being messed up but I've fixed it by defining the text as it's own style. Is there any other way to accomplish this? (just for my own knowledge)

Speaking of Styles, could you please show me how to change a Style Set in this process. I have a custom style saved as Template and would love for it to be applied as well.

Edit: So I've found that It's a simple line through Macro-recorder. If I wanted to build my own function could I make it something like:
Code:
Function changeStyle(oDoc As Document) As Boolean
On Error GoTo Err_Handler
'Do Something with oDoc here. e.g.,"
oDoc.ApplyQuickStyleSet2 ("Template")
MyUserDefinedProcess = True
lbl_Exit:
Exit Function
Err_Handler:
Select Case Err.Number
'Case Is = "Your handled errors e.g., 5109"
Case Else
MyUserDefinedProcess = False
Resume lbl_Exit
End Select
End Function
Thanks again.

Last edited by Artmax; 06-19-2017 at 06:19 PM. Reason: Add information
Reply With Quote