Inserting a Picture in a Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've created a form that contains a signature line. When filling it out for my supervisor, he prefers that I insert his signature from a JPEG file, but when others use the form, they need the signature line. When I unlock the form at the signature line to add his signature, all my inserted information disappears. How do I insert the supervisor's signature without losing all my inserted information?
 
I'm sure that the very smart people who monitor this site can come up with some macro thing, but what I'd do is simply have two forms. One for the general public and one that already has my bosses sig in it, and i'd just use that one for his stuff.
 
Thanks - I thought of that, too, but was hoping to deal with just one form. If no one comes up with a suggestion, though, this is what I'll do. Thanks again!
 
Hi Becky,

If you do not mind using a macro:
Open your form template:
Paste the code below in a module (ALT-F11 to open the VBE, find your
template in the list on the left, right-click it, choose to insert a
Standard module, paste the code in the code window on the right);
Close the VBE window;
Insert a bookmark where you want the signature to appear (Called
"bkmBossSig" in this code);
Create an autotext from the signature (Insert it somewhere, select it,
Insert > Autotext... > Autotext..., give it a name, "BossSig" in the example
below and click on Add, but make sure to add it to the form template, not
Normal.dot - Select the form template in the dropdown list at the bottom of
the autotext dialog);
Add a button on a toolbar to call this macro (Right-click any toolbar,
choose Customize, from the Commands tab, select macros on the left, find the
macros in the list on the right, drag it to a toolbar, right-click it to
change its name, hit enter, click OK on the Customize dialog);
Save your template.

'_______________________________________
Sub InsertSignature()

Dim SigPlace As Range

ActiveDocument.Unprotect

Set SigPlace = ActiveDocument.Bookmarks("bkmBossSig").Range

AttachedTemplate.AutoTextEntries("BossSig").Insert _
Where:=SigPlace

ActiveDocument.Protect _
Type:=wdAllowOnlyFormFields, NoReset:=True

End Sub
'_______________________________________

--
Cheers!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org


Becky said:
I've created a form that contains a signature line. When filling it out
for my supervisor, he prefers that I insert his signature from a JPEG file,
but when others use the form, they need the signature line. When I unlock
the form at the signature line to add his signature, all my inserted
information disappears. How do I insert the supervisor's signature without
losing all my inserted information?
 
Tamara - Do you know these people or do you know these people? hahaha - I just didn't really understand the macro instructions and thought there might be an easier way. Guess it's easy when you understand it!
 
Back
Top