steve8445
03-03-2016, 03:59 PM
I am trying to obtain the (text) TITLE of a DOCX that is always located on the first 1,2, or 3 of the non-empty lines at the start of the DOCX.
I'd like this title to be copied into both the System Clipboard and a Word VBA Variable - and (if possible?) to be accessible in a BASH Shell script (Mac OSX).
The TITLE is always located just prior to a known string e.g. "Joe Smith". It could be on the same line as Joe Smith, or on 1 or more of the lines prior. The title may span multiple lines. There is no other text prior to the Title. It's the first phrase in the DOCX, except for an unpredictable number of blank lines. Thanks.
I'd like this title to be copied into both the System Clipboard and a Word VBA Variable - and (if possible?) to be accessible in a BASH Shell script (Mac OSX).
The TITLE is always located just prior to a known string e.g. "Joe Smith". It could be on the same line as Joe Smith, or on 1 or more of the lines prior. The title may span multiple lines. There is no other text prior to the Title. It's the first phrase in the DOCX, except for an unpredictable number of blank lines. Thanks.