Automatic updating of pageref fields in rtf document

The application I'm working on to output documents to rtf format and PAGEREF fields is used on the table of contents page and on the index page. The problem is that when the document is opened, the fields are not updated and remain empty. They work correctly if you manually update the fields in Word. Is there a way to automatically update these fields in the RTF spec?

0


source to share


1 answer


You can try to create the Document_Open () macro, although you cannot add the macro to the rtf file. You might be able to add a macro to the template (.dot) and have a link to the .rtf file for the file.



Private Sub Document_Open()
End Sub

      

+1


source







All Articles