Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-18-2017, 06:53 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 Batch replace Header and Footer and QuickStyle

Like many before me i have a need to process a couple of hundred documents to create a uniform header and footer across the documents.
I have tried and failed to find a ready made macro which works for my purposes and have tried editing them but always end up with errors - I don't know head from tail in vba - but a vast majority of the ones came from this forum so I thought I'd try here.

Tried but it results in an error: 'Only comments may appear after End Sub, End Function or End Prop'
Tried too Compile error

I don't know where it might go wrong, could well be a dodgy operator (i.e. me)

Some difficulties/requirements:
1. Not all headers or footers are uniform across the files I need to replace.So haven't been able to get Find/Replace to work.
2. Header contains an image.
3. Need a QuickStyle applied to docs as well.

I have created Autotexts for headers and footers - @header and @footer and have setup a QuickStyle but cannot get them all to work together.

I would love to be able to point at a folder and for it to just run through and save them all(and subfolders if possible - but happy to go folder by folder - it will still save me hundreds of hours)
I'm using Office 2016 on Windows 10 if it makes a difference

Thank you for your generous help
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 03:24 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