Link to home
Start Free TrialLog in
Avatar of Member_2_4694817
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?
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_4694817
Member_2_4694817

ASKER

*sigh*  I was afraid so.
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 ...