A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

how to allow an insert of image in protected form



 
 
Thread Tools Display Modes
  #1  
Old April 17th 05, 07:11 PM
a
external usenet poster
 
Posts: n/a
Default how to allow an insert of image in protected form

Hello,

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

Cheers


Ads
  #2  
Old April 25th 05, 07:09 PM
Doug Robbins
external usenet poster
 
Posts: n/a
Default

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



  #3  
Old May 1st 05, 11:07 PM
Jay Freedman
external usenet poster
 
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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to keep date issued (not created) on protected form? Seagull Microsoft Word Help 2 June 24th 05 09:57 PM
How do i insert a photo into a protected form Bammons Page Layout 1 April 24th 05 11:55 AM
Create protected form that allows me to insert a jpeg/bmp file? Larry Abell Microsoft Word Help 4 March 14th 05 01:21 AM
Insert pictures in a protected form? BurZurk Microsoft Word Help 3 February 22nd 05 01:58 AM
Document object in protected form Bruce Tables 2 December 6th 04 07:09 PM


All times are GMT +1. The time now is 08:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.