Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fill in form content

Status
Not open for further replies.

wmbb

Technical User
Jul 17, 2005
320
NL
WORD 2007 form question:

Is it possible to fill a content control with the tag "tel" depending on the value of content control with the tag "requestor".

I was thinking about the a code like below but this doesn't work.

Code:
Sub names()
Select Case ActiveDocument.ContentControls("requestor").Value
   Case "person 1"
       ActiveDocument.ContentControls("tel") = "xxxxx"
   Case "person 2"
       ActiveDocument.ContentControls("tel") = "yyyyy"
   Case "person 3"
       ActiveDocument.ContentControls("tel") = "zzzzz"
   Case Else
       ActiveDocument.ContentControls("tel") = "-----"
End Select
End Sub

Any suggestions ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top