J
John A. Kunecke
I am trying to recreate an old macro that automatically opens the file
referenced (or at least attempts to do so) by the surrounding text.
Obviously I have written this before, but THIS time I was HOPING that some
new functionality had been added to allow me to automatically (via the
Selection object) determine what the cursor is positioned within: Field,
Hyperlink, plain text...to facilitate further action by the macro. It seems
very unsavory to continue to have to use the method used in Word 97, which I
would gladly discuss...I am sure you can understand how onerous the code was
to do it considering you had to determine if the user was displaying field
results or field content...and then character by character stepping left,
then right to find the boundaries of the potential file and path...you get
the point.
referenced (or at least attempts to do so) by the surrounding text.
Obviously I have written this before, but THIS time I was HOPING that some
new functionality had been added to allow me to automatically (via the
Selection object) determine what the cursor is positioned within: Field,
Hyperlink, plain text...to facilitate further action by the macro. It seems
very unsavory to continue to have to use the method used in Word 97, which I
would gladly discuss...I am sure you can understand how onerous the code was
to do it considering you had to determine if the user was displaying field
results or field content...and then character by character stepping left,
then right to find the boundaries of the potential file and path...you get
the point.