Deleting a graphic

P

Patrick C. Simonds

I have a document (template) which has a signature block. I have scanned two
signatures and have placed them in the signature block. I have code I can
use to delete one of the two signatures, but I do not know what their
picture number is. I tried recording a Macro and selecting one of the
pictures, but the macro recorder would not allow me to select a picture.

Any ideas?


Sub test()
ActiveDocument.Shapes("picture 20").Delete
End Sub
 
G

Graham Mayor

Why don't you save each of the signatures as autotext (or autocorrect)
entries and insert them with code rather than attempt to remove one or other
of them?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

Patrick C. Simonds

Thanks, you have peaked my curiosity. since the signature is actually a
graphic, how would I save it as an autotext?
 
G

Graham Mayor

Select it, press ALT+F3 and give it a name
or with autocorrect
Select it and when you enter the autocorrect dialog the formatted button
should be selected. Enter a trigger key combination eg #sig
You can store just about anything that can be entered in a document as
autotext or autocorrect.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top