View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Charles Kenyon
 
Posts: n/a
Default Inserting Photos into a protected form

I know it can be done and that there is a web page that tells how, but I
can't find it. Here is how I would start:

Have a field with an on-entry macro attached. This field does not hold the
photo, but activates the macro to insert, change it.

The macro would:
Pop up a message box asking if the person wants to change / insert a photo
from a file.
If yes, unprotect the form and display the Word dialog box to insert a
picture.
Get the name of the file from the dialog box (don't execute it).
Insert the picture inside the bookmark, preserving the bookmark.
Reprotect the form, not resetting the data.

Instead of an on-entry macro to a field, you could have a custom toolbar in
your template with a button / menu choice to run your macro.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


(This will require that the photo be in a separate file that the user can
find.)
"atmusky" wrote in message
oups.com...
Using Word/Office 2003.

Have a protected form that I would like the Users to be able to insert
a photo into one of the form fields. Does anyone know how I can do
this without removing the forms protection?

Thanks,

atmusky