Hi =?Utf-8?B?UGVuZ2d1?=,
Is there any way to run a macro in the document? For example, the MACROBUTTON
thing wants you to click on it.
I want to run TableDeleteRow if certain conditions aren't met.
eg { IF "{ AUTOTEXT xyz }"="FALSE" TableDeleteRow "{ AUTOTEXT xyz }"}
?
I'm afraid there's no way to trigger a macro through the result of a field code.
The user has to do the triggering. Or, you'd need to link the action to an
event, such as Window_SelectionChange. This won't fire when the field updates,
but it will when the user tabs in a table, uses the up/down arrows keys or
clicks with the mouse. The macro would then have to search for the field, check
the result and perform the necessary action.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail
