Avatar of grayderek
grayderek
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

Update properties from header information

I have a word macro that updates the properties based upon text in a table, sample line of code reads thus:
ActiveDocument.BuiltInDocumentProperties("Subject") = ActiveDocument.Tables(1).Cell(1, 2).Range.Text
This works fine from a table in the body of the document.  
What I need now is the same only from information contained in a table in the header

Thanks
ActiveDocument.BuiltInDocumentProperties("Subject") = ActiveDocument.Tables(1).Cell(1, 2).Range.Text

Open in new window

Microsoft Word

Avatar of undefined
Last Comment
grayderek

8/22/2022 - Mon