![]() |
#1
|
|||
|
|||
![]()
In the "C:\Temp" folder I have about 500 files (*.docx)
I'm looking for a VBA command that will do the following: 1. Open the first file and find the first Image in the document. Replace it with the text "IMAGE 1". 2. Find another Image in the same document and replace it with the text "IMAGE 2", 3. Find the third Image in the same document and replace it with the text "IMAGE 3", 4. etc ... 5. When there are no more Images, save and close the file (Word document) - Open the next Word file (second file) and do the same as for the first - Open the next Word file (third file) and do the same as before. - and so on to the end (to the last file) Basically, I want to replace all Images with "text" but by assigning an ordinal number to each subsequent Image (in one document). I want to do all this in one step (at once). Is there anyone VBA who can do this? |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Carchee | Word VBA | 42 | 07-10-2024 08:47 AM |
Find and replace header text across multiple files | LG1972 | Excel | 1 | 12-25-2018 04:27 AM |
![]() |
balaji | Word VBA | 10 | 03-24-2016 02:11 AM |
![]() |
tanzinim | Word VBA | 4 | 12-30-2015 01:40 PM |
Chapter and page numbers in a TOC built from multiple Word files | NFA1 | Word | 0 | 05-02-2014 01:00 PM |