View Single Post
 
Old 12-19-2012, 06:13 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by New Daddy View Post
Would a picture (inserted as a file through Insert-Picture command) cause an error with this macro? I inserted a JPG file in the document and started facing run-time error 5917.
Possibly. Try inserting:
On Error Resume Next
before:
For i = 1 To .Revisions.Count
That should allow the macro to skip over such errors.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]