Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2021, 02:19 AM
beginner beginner is offline Replace all Images with ordinal numbers in multiple files Windows 7 32bit Replace all Images with ordinal numbers in multiple files Office 2013
Advanced Beginner
Replace all Images with ordinal numbers in multiple files
 
Join Date: Sep 2011
Location: Europe
Posts: 45
beginner will become famous soon enough
Default 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?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and replace header text across multiple files LG1972 Excel 1 12-25-2018 04:27 AM
Replace all Images with ordinal numbers in multiple files Replace or apply new header in multiple files Carchee Word VBA 28 05-30-2017 08:44 AM
Replace all Images with ordinal numbers in multiple files Macro to replace Image, Numbers in Table and in multiple protected word document balaji Word VBA 10 03-24-2016 02:11 AM
Replace all Images with ordinal numbers in multiple files 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

Other Forums: Access Forums

All times are GMT -7. The time now is 01:50 AM.


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