Results 1 to 5 of 5
  1. #1
    Lounger
    Join Date
    May 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Creating a Popup in a Form (Word 2000)

    I have created a form, and would like to have a popup help window appear as users enter particular fields. I would also like a popup window when they first open the form that provides some general directions.

    I thought I had easily done this in the past, but for the life of me cannot figure out how to do it now. I would great appreciate any nudge in the right direction.

    Mary

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

    Re: Creating a Popup in a Form (Word 2000)

    1. While the document is unlocked, you can double-click a form field to set its properties. Click the Help Text button at the bottom of the dialog. You can specify text to be displayed in the status bar, and text that pops up when the user presses F1 while the insertion point is in the field. You can also insert Comments for each form field, these will pop up when the user moves the mouse over a field.

    2. If you want a help text to pop up when the document is opened, you can write an AutoOpen macro (in a standard module) or a Document_Open macro (in the ThisDocument module) that displays a message box or userform with instructions.

  3. #3
    Lounger
    Join Date
    May 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Creating a Popup in a Form (Word 2000)

    Thank you for that quick reply, Hans.

    Can you direct me to information on how to write an AutoOpen or Document_Open macro as well as the two modules you referenced?

    Again, thank you!
    Mary

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

    Re: Creating a Popup in a Form (Word 2000)

    To create an AutoOpen macro:

    - Activate the Visual Basic Editor (select Tools | Macro | Visual Basic Editor or press Alt+F11)
    - Create a new module (Insert | Module)
    - Type code like the following (substitute the appropriate text, of course)

    Sub AutoOpen()
    MsgBox "Now Is The Time For All Good Men To Come To The Aid Of Their Country", vbInformation
    End Sub

    - Switch back to Word (Alt+F11)
    - Close and save the document, then reopen it to see if the message is displayed.
    - If not, you may have set macro security to High; set it to Medium in Tools | Macro | Security.

    <img src=/w3timages/blueline.gif width=33% height=2>

    Alternative: To create a Document_Open macro:

    - Activate the Visual Basic Editor (select Tools | Macro | Visual Basic Editor or press Alt+F11)
    - Activate the Project Explorer (Ctrl+R)
    - If necessary, expand your document until you see ThisDocument
    - Double click ThisDocument
    - Type code like the following (substitute the appropriate text, of course)

    Private Sub Document_Open()
    MsgBox "Now Is The Time For All Good Men To Come To The Aid Of Their Country", vbInformation
    End Sub

    - Switch back to Word (Alt+F11)
    - Close and save the document, then reopen it to see if the message is displayed.
    - If not, you may have set macro security to High; set it to Medium in Tools | Macro | Security.

  5. #5
    Lounger
    Join Date
    May 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Creating a Popup in a Form (Word 2000)

    You are the best! Thank you!!!

Posting Permissions

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