Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2006

Tip: Looking for answers? Try searching our database.

Run Macro on form after exiting text box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nigel - 29 Sep 2006 23:02 GMT
I am new to word and Macros so this more than likely easy

I have a form with some check and text boxes on it

if a user checks a check box and then later on enters a value in a text
field I want it to check the check boxs and see if it is true, if so I want a
value from another text box entered into other text boxes. i tried this but
no luck

If check4 = True Then
text15 = text11
text18 = text11
End If

thanks
Jean-Guy Marcil - 30 Sep 2006 01:59 GMT
Nigel was telling us:
Nigel nous racontait que :

> I am new to word and Macros so this more than likely easy
>
[quoted text clipped - 9 lines]
> text18 = text11
> End If

Try something like:

With ActiveDocument.FormFields
   If .Item("check4").CheckBox.Value = True Then
       .Item("text15").Result = .Item("text11").Result
       .Item("text18").Result = .Item("text11").Result
   End If
End With

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.