More detailed question on variable and text formfield

A

Andre

I tried:
BeltLength = ActiveDocument.FormFields("BeltLength").Result
ActiveDocument.FormFields("BeltLength").Result := BeltLength
BeltLength := ActiveDocument.FormFields("BeltLength").Result
ActiveDocument.FormFields("BeltLength").Result = BeltLength2

The text form field does have a bookmark name of BeltLength, and I
want the variable to be BeltLength (or some variation of it).

Some slight variations of the above were tried with no success, when I
step through, it says "Expected function or variable". Maybe I didn't
declare the variable BeltLength correctly? How should I have declared
it if the entry from the form field is a number?

Thank you,

Andre Susanto
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top