Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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 | |
|
|
![]() |
||||
Thread | Forum | |||
Mail Merge Error locked fields | Microsoft Word Help | |||
Find and Replace anomaly | Microsoft Word Help | |||
How can I spell check locked form fields? | Microsoft Word Help | |||
mail merge problem - "Word found locked fields during the update.. | Tables | |||
Using MAILMERGE fields within HYPERLINK fields for Merge to Email | Mailmerge |