Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Nov 2004
    Location
    Wilmington, North Carolina, USA
    Posts
    1,196
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quick Code question for word form (Word 2000)

    Post deleted by NYIntensity
    ____________________________
    Jeremy
    "If you spend more on coffee than on IT security, then you will be hacked. What's more, you deserve to be hacked." -Richard Clarke

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Quick Code question for word form (Word 2000)

    By "form" do you mean a Word document with form fields (from the Forms toolbar), or a VBA UserForm?

  3. #3
    5 Star Lounger
    Join Date
    Nov 2004
    Location
    Wilmington, North Carolina, USA
    Posts
    1,196
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Quick Code question for word form (Word 2000)

    Post deleted by NYIntensity
    ____________________________
    Jeremy
    "If you spend more on coffee than on IT security, then you will be hacked. What's more, you deserve to be hacked." -Richard Clarke

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Quick Code question for word form (Word 2000)

    Forms with form fields can be difficult to control. You can create a macro that warns the user and set it as Exit macro for the text field and for the check box, but this will not force the user to fill in the text box.

    Sub TestAndWarn()
    If ActiveDocument.FormFields("Check1").CheckBox.Value = True And _
    ActiveDocument.FormFields("Text1").Result = "" Then
    MsgBox "Fill in the text box"
    ActiveDocument.Bookmarks("Text1").Range.Fields(1). Result.Select
    End If
    End Sub

    This will not even reselect the text box if you tab out of it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •