View Single Post
 
Old 02-06-2020, 02:11 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,375
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

I have run the code with your document as the active document and do not get that error. I suggest you re-copy the code and paste into your attachment's 'ThisDocument' code module - and ensure your attachment is the active document when you run the code. You might then even change:
Set DocSrc = ActiveDocument
to:
Set DocSrc = ThisDocument
so that your attachment does not need to be the active document when you run the code.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote