New Doc showing Fillin field twice

J

John Davidson

Hi All,
I am finding that when a new document is created using a template with
fillin fields and a fillin field in the template footer, it prompts the
user twice. It is the first and last prompt, is this normal behavior or
am I doing something wrong?
John D.
 
J

John Davidson

I think I have solved this problem by locking and unlocking the fields,
but I am now having trouble with the macro below. It works fine on the
fillin fields in the document main body, but it doesn't process the
fields in the footers.
Anyone got any ideas why?
John D.

Sub FillinFieldsReEnter()
Dim AllFields As Fields
Dim FillinField As Field
Set AllFields = ActiveDocument.Fields
For Each FillinField In AllFields
If FillinField.Type = wdFieldFillIn Then
FillinField.Locked = False
FillinField.Update
FillinField.Locked = True
End If
Next
ActiveWindow.View.ShowFieldCodes = False
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top