Member_2_4694817
asked on
String operations on MSWord text fields?
I would like to insert a field into Word 2003 that contains only a substring of a given text field, esp. the filename.
For example if
{ FILENAME MERGEFORMAT }
produces foobarbaz.doc, I rather want the substring of length 3 starting at position 3 (i.e. "bar") to appear
However, functions seem to be restricted to numeric funtions, I think.
So it appears there is no such thing as
{= SUBSTR( { FILENAME MERGEFORMAT }, 3, 3) }
Or is there?
For example if
{ FILENAME MERGEFORMAT }
produces foobarbaz.doc, I rather want the substring of length 3 starting at position 3 (i.e. "bar") to appear
However, functions seem to be restricted to numeric funtions, I think.
So it appears there is no such thing as
{= SUBSTR( { FILENAME MERGEFORMAT }, 3, 3) }
Or is there?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've now written a macro that replaces some "INSERT-STUFF-HERE" with the content I need.
This is of course suboptimal in that field update mechanisms etc. don't really work ...