![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#12
|
||||
|
||||
|
I believe the only thing you'd need to change is from:
strFile = Dir(StrFolder & "*.docx") to: strFile = Dir(StrFolder & "*.dotx") However, given that templates in Word 2007 & later are often macro-enabled, you might do better to use: strFile = Dir(StrFolder & "*.dot") This will open .dotx, .dotm and .dot templates. PS: Please don't quote previous posts in your replies unless there's something specific you need to refer to - and then include only the relevant portion(s). Anything more just adds clutter.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| find & replace, header; footer; body, vba |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Find & Replace in Header/Footer in 1000 files
|
amodiammmuneerk@glenmarkp | Word | 12 | 03-05-2018 03:31 AM |
Find & Replace in Header/Footer
|
PReinie | Word | 6 | 01-22-2014 06:45 PM |
| Footer Find & Replace Operation? | binar | Word | 1 | 02-05-2013 10:39 PM |
Insert a header name in the text (body)
|
bal-007 | Word | 3 | 11-25-2011 01:08 PM |
| Find and replace page numbers in body of text | tollanarama | Word | 3 | 02-13-2011 06:00 AM |