Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Hameed Hameed is offline
external usenet poster
 
Posts: 2
Default Mail Merge and protection

Hi,

I have a mail merge document in MS Word 2003 in which I use several form
fields to be filled manually as well.

When a user opens the document (well, the system generates the document),
they have to enable macros for the merge to work, once the data is retrieved
from external source and the document is merged, then I use VBA to set the
protection:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True,
Password:="My_PassWord"

Now the problem is that after this, the users are not able to edit the form
fields, although I have used wdAllowOnlyFormFields.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Mail Merge and protection

Form fields and mail merge are incompatible and the fields will will not
survive a merge. You will have to think of some other way of inserting your
data eg ASK fields?

--

Graham Mayor - Word MVP

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


Hameed wrote:
Hi,

I have a mail merge document in MS Word 2003 in which I use several
form fields to be filled manually as well.

When a user opens the document (well, the system generates the
document), they have to enable macros for the merge to work, once the
data is retrieved from external source and the document is merged,
then I use VBA to set the protection:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True,
Password:="My_PassWord"

Now the problem is that after this, the users are not able to edit
the form fields, although I have used wdAllowOnlyFormFields.



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Mail Merge and protection

Hi Graham,

Assuming the ASK field and any cross-references to it survives the merge, I can see all sorts of problems arising with the
cross-references trying to get data from multiple instances of ASK fields that all set the same bookmark. Invariably, they'll all
end up pointing to the last ASK field.

Perhaps a user form would be better suited - especially since the OP is already using vba.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Graham Mayor" wrote in message ...
Form fields and mail merge are incompatible and the fields will will not survive a merge. You will have to think of some other way
of inserting your data eg ASK fields?

--

Graham Mayor - Word MVP

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


Hameed wrote:
Hi,

I have a mail merge document in MS Word 2003 in which I use several
form fields to be filled manually as well.

When a user opens the document (well, the system generates the
document), they have to enable macros for the merge to work, once the
data is retrieved from external source and the document is merged,
then I use VBA to set the protection:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True,
Password:="My_PassWord"

Now the problem is that after this, the users are not able to edit
the form fields, although I have used wdAllowOnlyFormFields.




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Mail Merge and protection

Agreed - I don't like ASK fields at all. It was merely the first thing that
came out as a possible alternative - and then only if the same data applied
to all the records.. Nor do I like the idea of adding data per record on the
fly - much better to modify the data source.

--

Graham Mayor - Word MVP

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


macropod wrote:
Hi Graham,

Assuming the ASK field and any cross-references to it survives the
merge, I can see all sorts of problems arising with the
cross-references trying to get data from multiple instances of ASK
fields that all set the same bookmark. Invariably, they'll all end up
pointing to the last ASK field.
Perhaps a user form would be better suited - especially since the OP
is already using vba.
Cheers

"Graham Mayor" wrote in message
...
Form fields and mail merge are incompatible and the fields will will
not survive a merge. You will have to think of some other way of
inserting your data eg ASK fields? --

Graham Mayor - Word MVP

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


Hameed wrote:
Hi,

I have a mail merge document in MS Word 2003 in which I use several
form fields to be filled manually as well.

When a user opens the document (well, the system generates the
document), they have to enable macros for the merge to work, once
the data is retrieved from external source and the document is
merged, then I use VBA to set the protection:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True,
Password:="My_PassWord"

Now the problem is that after this, the users are not able to edit
the form fields, although I have used wdAllowOnlyFormFields.



  #5   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Hameed Hameed is offline
external usenet poster
 
Posts: 2
Default Mail Merge and protection

Hi macropod,

Thanks for the reply.

Can you elaborate on using user forms?

Regards,
Hameed

"macropod" wrote:

Hi Graham,

Assuming the ASK field and any cross-references to it survives the merge, I can see all sorts of problems arising with the
cross-references trying to get data from multiple instances of ASK fields that all set the same bookmark. Invariably, they'll all
end up pointing to the last ASK field.

Perhaps a user form would be better suited - especially since the OP is already using vba.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Graham Mayor" wrote in message ...
Form fields and mail merge are incompatible and the fields will will not survive a merge. You will have to think of some other way
of inserting your data eg ASK fields?

--

Graham Mayor - Word MVP

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


Hameed wrote:
Hi,

I have a mail merge document in MS Word 2003 in which I use several
form fields to be filled manually as well.

When a user opens the document (well, the system generates the
document), they have to enable macros for the merge to work, once the
data is retrieved from external source and the document is merged,
then I use VBA to set the protection:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True,
Password:="My_PassWord"

Now the problem is that after this, the users are not able to edit
the form fields, although I have used wdAllowOnlyFormFields.







  #6   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod macropod is offline
external usenet poster
 
Posts: 1,002
Default Mail Merge and protection

Hi Hameed,

See:
http://word.mvps.org/FAQs/Userforms/index.htm

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Hameed" wrote in message ...
Hi macropod,

Thanks for the reply.

Can you elaborate on using user forms?

Regards,
Hameed

"macropod" wrote:

Hi Graham,

Assuming the ASK field and any cross-references to it survives the merge, I can see all sorts of problems arising with the
cross-references trying to get data from multiple instances of ASK fields that all set the same bookmark. Invariably, they'll all
end up pointing to the last ASK field.

Perhaps a user form would be better suited - especially since the OP is already using vba.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Graham Mayor" wrote in message ...
Form fields and mail merge are incompatible and the fields will will not survive a merge. You will have to think of some other
way
of inserting your data eg ASK fields?

--

Graham Mayor - Word MVP

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


Hameed wrote:
Hi,

I have a mail merge document in MS Word 2003 in which I use several
form fields to be filled manually as well.

When a user opens the document (well, the system generates the
document), they have to enable macros for the merge to work, once the
data is retrieved from external source and the document is merged,
then I use VBA to set the protection:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True,
Password:="My_PassWord"

Now the problem is that after this, the users are not able to edit
the form fields, although I have used wdAllowOnlyFormFields.





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
Using Form Protection with a Template for a Mail Merge dch3 Microsoft Word Help 1 July 14th 07 09:36 AM
Mail-Merge: Can we have master detail relationship or multiple entities in word Mail-Merge? gmax2006 Microsoft Word Help 1 March 28th 07 06:28 PM
Form password protection on mail merge documents Form Lady Microsoft Word Help 1 August 25th 06 08:52 AM
mail merge protection D. Jarrett Mailmerge 3 July 9th 06 03:06 PM
mail merge doc with further linked/embedded mail merge docs not playing the game Rob Cowlard Mailmerge 3 January 8th 05 09:15 AM


All times are GMT +1. The time now is 11:10 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"