Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Ralph Eric Ralph Eric is offline
external usenet poster
 
Posts: 1
Default Word Form Fields in a Mail Merge Document

I have created a mail merged Word Document containing Form Field Drop Down
boxes and Check boxes. It won't work with the Mail Merge in Salesforce unless
I upload it with Protection off, which means the drop down and checkboxes
don't work until the Protection button is turned back on.
Is there a way to have Protection automatically engage after the Mail Merge
is complete? This would save me from having to have all my users add the Form
Field tool bar to their Word application and trained to click the lock icon
before completing the document.
Thanks in advance.
Ralph Eric
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Word Form Fields in a Mail Merge Document

See http://www.gmayor.com/Form_Fields_and_Mail_Merge.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Ralph Eric wrote:
I have created a mail merged Word Document containing Form Field Drop
Down boxes and Check boxes. It won't work with the Mail Merge in
Salesforce unless I upload it with Protection off, which means the
drop down and checkboxes don't work until the Protection button is
turned back on.
Is there a way to have Protection automatically engage after the Mail
Merge is complete? This would save me from having to have all my
users add the Form Field tool bar to their Word application and
trained to click the lock icon before completing the document.
Thanks in advance.
Ralph Eric



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Ralph Eric[_2_] Ralph Eric[_2_] is offline
external usenet poster
 
Posts: 1
Default Word Form Fields in a Mail Merge Document

Graham,
Really appreciate the reply.
Actually, I already have the mail merge document so it loads the data
correctly. All I'm looking for is a macro that will simply toggle the
protection "On" after the form is opened in Word and the fields are
populated, so the drop down and checkbox form fields are engaged.
I was hoping a script could be embedded that would trigger once the fields
finish populating.
Ralph Eric

  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Word Form Fields in a Mail Merge Document

The reason that Doug and I made the linked page available was to overcome
exactly the problems you are encountering.

You can only lock the form automatically if you create a macro to run your
merge process and lock the form from that macro before saving it, which is
essentially what the page demonstrates. You cannot merge the macro code that
would allow your users to open the document with the form locked.

The page I referred you to has example code showing how to lock the form
e.g.

'Protect the document for forms
ActiveDocument.Protect _
Type:=wdAllowOnlyFormFields, _
NoReset:=True, Password:=sPassword
'and save it
ActiveDocument.SaveAs FileName:=DocName, _
FileFormat:=wdFormatDocument, _
AddToRecentFiles:=False

sPassword and DocName are variables defined earlier in the macro.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org





Ralph Eric wrote:
Graham,
Really appreciate the reply.
Actually, I already have the mail merge document so it loads the data
correctly. All I'm looking for is a macro that will simply toggle the
protection "On" after the form is opened in Word and the fields are
populated, so the drop down and checkbox form fields are engaged.
I was hoping a script could be embedded that would trigger once the
fields finish populating.
Ralph Eric



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Fields, Protect Form, Mail Merge, Templates vs Documents QA info Microsoft Word Help 3 March 24th 09 09:23 PM
How do I mail merge a form without losing the form fields when me. TGM Mailmerge 1 May 30th 06 12:11 PM
MS Word form fields versus mail merge fields [email protected] Mailmerge 4 March 4th 06 05:31 PM
Form fields versus mail merge fields [email protected] Microsoft Word Help 2 February 16th 06 02:12 PM
mail merge some fields leave other as form fields BethW Mailmerge 1 September 20th 05 06:47 PM


All times are GMT +1. The time now is 11:52 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"