Selecting fields/section

T

TRM

How do I approve the changes of all the fields
(docvariable fields, mergefields) which are on the first
section/page of a template?

Here is what I have right now, but I have tried SEVERAL
combinations! The rest of the document needs to keep the
changes tracked/marked - but the title page needs "ok'd".

Thanks!

Dim ofield As Field
oDoc.Sections(1).Range.Select
For Each ofield In ActiveDocument.Range
oDoc.Range.Revisions.AcceptAll
Next
 
D

DA

Hi TRM

Try the following instead:

With ActiveDocument
For lngCounter = 1 To .Sections(1).Range.Fields.Count
.Fields(lngCounter).Select
Selection.Range.Revisions.AcceptAll
Next
End With

Hope that helps,
Dennis
 

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