meterkasce.blogg.se

Fill a clickable box in word
Fill a clickable box in word





  1. Fill a clickable box in word how to#
  2. Fill a clickable box in word pdf#
  3. Fill a clickable box in word code#
  4. Fill a clickable box in word password#

Click the region field’s dropdown and choose South.

Fill a clickable box in word password#

  • Enter the same password twice, and click OK.Īll that’s left is to use the fields.
  • Then, click Yes, Start Enforcing Protection under 3.
  • Editing Restrictions and choose Filling In Forms from that option’s dropdown.
  • In the resulting task pane, click the Allow Only… option under 2.
  • Click the Developer tab and click Restrict Editing in the Protect Group.
  • Before using the fields, enable protection, as follows:
  • From the Exit dropdown, choose PopulateddState.
  • (Or, click Properties in the Controls group on the Developer tab.)
  • Right-click ddRegion and choose Properties.
  • You need to tell the state dropdown to execute the new procedure you just added, as follows: Add "Maine" End With Case "West" With ActiveDocument.FormFields("ddState").DropDown.ListEntries. Add "Texas" End With Case "East" With ActiveDocument.FormFields("ddState").DropDown.ListEntries. Add "Ohio" End With Case "South" With ActiveDocument.FormFields("ddState").DropDown.ListEntries. Sub PopulateddState() Select Case ActiveDocument.FormFields("ddRegion").Result Case "North" With ActiveDocument.FormFields("ddState").DropDown.ListEntries.
  • Click Save on the Standard toolbar and then click Yes.
  • fill a clickable box in word

  • Enter the PopulateddState sub procedure shown below.
  • Launch the Visual Basic Editor (VBE) by pressing +.
  • To populate ddState, add the VBA procedure below, as follows: Next, right-click the state dropdown field and name it ddState (using the Bookmark control, as you just did to name the first dropdown ddRegion.) Click OK to close the dialog box.Īt this point, you have one populated dropdown named ddRegion and a second dropdown named ddState, that’s still empty.

    Fill a clickable box in word code#

    You don’t have to rename the dropdown field, you can retain the default, but giving it a descriptive and meaningful name will make the code easier to maintain. Don’t skip this step – when I receive mail about these types of techniques, more often than not the reader has missed this step. In the Bookmark control, enter ddRegion.In the Dropdown item control, enter North and click Add.Right-click the region dropdown field and choose Properties from the resulting submenu.Now you’re ready to populate the first dropdown with the region items, as follows: SEE: Download: Build your Excel skills with these 10 power tips (TechRepublic) To do so, choose Toolbars from the View menu, and then select Forms.) (If you’re still using Word 2003, the instructions are similar, but you’ll need to display the Forms toolbar to access the controls. Repeat step 2 to add a second dropdown field.In the Controls group, click the Legacy Form dropdown and choose Drop-Down Form Field.

    Fill a clickable box in word how to#

    (If you don’t know how to enable the Developer tab, read How to: Show the Developer Tab on the Ribbon.

  • In Word, open a blank document and click the Developer tab.
  • The first step is to create the user form and add a couple of form fields, as follows: Then, we’ll use a VBA Select Case statement to populate a second list with a few states from the selected region. To illustrate this dependent list solution, we’ll populate a primary list with region items: North, South, East, and West. LEARN MORE: Office 365 Consumer pricing and features For this example, we’ll stick with the simpler solution and hard-code the items. The latter is more dynamic, but requires more code and a database. Or, you can retrieve the appropriate list items from a database.

    fill a clickable box in word

    You can hard-code list items in a VBA procedure to populate the secondary (dependent) list. Occasionally, the selection in one field determines the contents of another. Many templates and web forms use Word form fields to solicit information from the user. Quick glossary: Metaverse (TechRepublic Premium)

    Fill a clickable box in word pdf#

    Working with PDFs is a breeze with PDF Converter Pro

    fill a clickable box in word

    TechRepublic Editor-in-Chief Bill Detwiler bids farewell, introduces new Managing Editor, Tamara Scottīecome a Linux expert just in time for the 2022 boom Use VBA code to populate a dependent form field in Microsoft Word.

    fill a clickable box in word

    How to populate a dependent dropdown list in Word







    Fill a clickable box in word