Reply
 
Thread Tools Display Modes
  #1   Report Post  
Ron Ford
 
Posts: n/a
Default Can't find locked fields

I am trying to determine which merge fields are locked,
as I get a 'Word found locked fields during the update.'
which stops my attempt at having a merge document print
automatically.

The following code in my macro produces nDataFields = 81,
nFieldNames = 81, but nFieldNames = 0.

Since only the Fields(i) has a Locked property, I am
unable to find which fields are locked (I have pressed
Ctrl+Shift+F11 on every merge field in my .dot file but
the error message still occurs).

Any help will be much appreciated.

Macro Code:

Dim mdoc As MailMerge
Dim nDataFields, nFieldNames, nFields As Integer

Documents.Open "C:\working\forms\test.dot"
Set mdoc = ActiveDocument.MailMerge
nDataFields = mdoc.DataSource.DataFields.Count
nFieldNames = mdoc.DataSource.FieldNames.Count
nFields = mdoc.Fields.Count

As an aside, there are only 80 merge fields (not 81) in
my document. They are a mixture of MergeFields and
If..Then..Else fields.
Using Word 2000 on XP.


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
Mail Merge Error locked fields Lisa Microsoft Word Help 1 January 19th 05 08:00 PM
Find and Replace anomaly BruceM Microsoft Word Help 7 January 18th 05 05:47 PM
How can I spell check locked form fields? selzmank Microsoft Word Help 1 January 12th 05 05:12 PM
mail merge problem - "Word found locked fields during the update.. zgaryt Tables 1 January 9th 05 01:04 PM
Using MAILMERGE fields within HYPERLINK fields for Merge to Email Mark V Mailmerge 2 December 4th 04 04:01 PM


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