G
Guest
I am a new user of VBA.
I want to write code that compares the values of two fields. One field's
value is expected to be less than or equal to the other and, if that is not
the case, I want to display a message to the user. The bookmark names for
the fields are 'fundingShortfall' and 'requestAmt'. 'fundingShortfall' is a
cell in a WORD table, whose value is calculated with a formula, using values
from another WORD table in the same document. 'requestAmt' is entered by the
user into a text form field in a cell in the same WORD table as
'fundingShortfall'. I want my code to run immediately after the user enters
the value of 'requestAmt'.
Can someone illustrate how to code the names of the two field's values in an
IF statement in VBA? That is, the full-qualified names and syntax for an IF
using these values based on the bookmark names?
Thanks.
I want to write code that compares the values of two fields. One field's
value is expected to be less than or equal to the other and, if that is not
the case, I want to display a message to the user. The bookmark names for
the fields are 'fundingShortfall' and 'requestAmt'. 'fundingShortfall' is a
cell in a WORD table, whose value is calculated with a formula, using values
from another WORD table in the same document. 'requestAmt' is entered by the
user into a text form field in a cell in the same WORD table as
'fundingShortfall'. I want my code to run immediately after the user enters
the value of 'requestAmt'.
Can someone illustrate how to code the names of the two field's values in an
IF statement in VBA? That is, the full-qualified names and syntax for an IF
using these values based on the bookmark names?
Thanks.