#1
|
|||
|
|||
Replace all Images with ordinal numbers in multiple files
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? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Replace or apply new header in multiple files | Carchee | Word VBA | 41 | 01-26-2024 07:27 AM |
Find and replace header text across multiple files | LG1972 | Excel | 1 | 12-25-2018 04:27 AM |
Macro to replace Image, Numbers in Table and in multiple protected word document | balaji | Word VBA | 10 | 03-24-2016 02:11 AM |
ord vba replace the variable text with variable images to make offer products with images | 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 |