Forum Discussion
Noone_Important
Aug 04, 2023Copper Contributor
How to remove all images from a .rtf Word document
I have a very long (9000 page) .rtf Word document. It was created via OCR from 9000 pages of hardcopy.
Occasionally the text includes images (as per the attached image).
I realise there is the option of replacing all graphics with nothing, and that should delete all the images.
(As in find ^g replace [leave blank]).
Nonetheless when I do this it says there were zero replacements made.
This is driving me crazy, as clearly there are graphics inside the document.
Could the images I see be something other than graphics? How can I delete them all?
Noone_Important Try running a macro containing the following code:
Dim i As Long With ActiveDocument For i = .Shapes.Count To 1 Step -1 .Shapes(i).Delete Next i End With