View Single Post
  #3   Report Post  
Jay Freedman
 
Posts: n/a
Default

I noticed several requests over the last month or so for a method of
inserting a picture into a protected form. I've prepared a sample
template with the macro code required to do it. You can download it
from http://jay-freedman.info/form_picture.zip. If you have any
questions about it, please post here or email me at the address in the
template.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Mon, 25 Apr 2005 20:09:01 +0200, "Doug Robbins"
wrote:

You will have to unprotect the document to do this. That can be done with a
macro either run on exit from one of the formfields or by assigning the
macro to the keyboard or a button on a toolbar.

The macro should unprotect the document using the command
ActiveDocument.Unprotect, then it should move the selection to the cell in
the table where you want the picture inserted - best done by inserting a
bookmark in that cell and then using ActiveDocument.Bookmarks("Name of
Bookmark").Range.Select, and then it should use the command
Dialogs(wdDialogInsertPicture).Show to display the Insert Picture dialog so
that the user can select the picture. Then the macro should contain the
command ActiveDocument.Protect wdAllowOnlyFormFields NoReset to reprotect
the document.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"a" wrote in message
...
Hello,

how can you allow the insert of an image within a table in a protected
form?

Cheers