Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 06-19-2017, 05:59 PM
Artmax Artmax is offline Batch replace Header and Footer and QuickStyle Windows 10 Batch replace Header and Footer and QuickStyle Office 2016
Novice
Batch replace Header and Footer and QuickStyle
 
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
 

Tags
macro find and replace, styles, word 2016



Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch replace Header and Footer and QuickStyle Find & Replace in Header/Footer in 1000 files amodiammmuneerk@glenmarkp Word 12 03-05-2018 03:31 AM
Batch replace Header and Footer and QuickStyle New to VBA - Find/Replace in MS Word 2010 that Searches Header/Footer mbreggs Word VBA 4 06-01-2016 08:02 AM
Batch replace Header and Footer and QuickStyle Find/replace font colour in all header/footer trillium Word VBA 4 10-20-2015 10:39 PM
Batch replace Header and Footer and QuickStyle Created VBA to Find and Replace in Body, Header and Footer with Highlighting the replacement text QA_Compliance_Advisor Word VBA 11 09-23-2014 04:40 AM
Batch replace Header and Footer and QuickStyle Find & Replace in Header/Footer PReinie Word 6 01-22-2014 06:45 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:52 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft