If statement referencing a VBA Form

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Can you use a field to reference a selection made on a VBA form?

Scenario:
1. Word 2007
2. Deed Document (used as a template)
3. Depending on whether the Grantor is a person or company there are two
different Affidavits
4. I cannot use a .dot file because our Document Management Systems will
not open .dot files therefore cannot use AutoText

On my vba form there are option buttons - individual(s) or company.
Depending on the option you select, in the document I'd like: If you
selected the company option then use this affidavit but don't know how to
reference the PrecForm1.grantorcompany option button in Word's If field (if
it can be done at all).

Tks...Brenda
.



Relevant Pages

  • Re: Error 462 - Remote server machine does not exist or is unavail
    ... "Tony Jollans" wrote: ... Dim wdDoc As Word.Document ... reference that really shouldn't exist. ... Every Window in Word has a Selection, ...
    (microsoft.public.word.vba.general)
  • Re: Shapes at Runtime?
    ... label to any shape by clicking a shape and clicking ... execution enters the event handler. ... a function call that returns a reference _to_ the object. ... I'll name the field Selection and it will be of type TShape. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Mr. McGinn and "Eight" for starts.
    ... > statement I made that you think requires a reference. ... >>> selection it's not because they have any specific dispute it's ... > excuse list, everytime you use an excuse for not providing a ...
    (sci.anthropology.paleo)
  • Re: Open invitation to IDers - What argument would you use to justify ID should be taught in sci
    ... Do you have a good reference? ... > Thanks Stuart, ... > reference to altruism which I see as the conceern for another's well ... that was the result of kin selection. ...
    (talk.origins)
  • Re: Error 462 - Remote server machine does not exist or is unavail
    ... That means something (quite possibly VBA behind the scenes) is keeping a reference that really shouldn't exist. ... Every Window in Word has a Selection, with the default Selection being the ... > Then why does it work the first time through the subroutine? ...
    (microsoft.public.word.vba.general)