Thread: MSG box

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    8
    Rep Power
    0

    MSG box


    How do I make a msg box?
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,441
    Rep Power
    4539
    The most basic form, in vb or vba:

    msgbox "The Prompt Here"

    Look in the VB function documentation for the msgbox function for more variations.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    8
    Rep Power
    0
    Maybe it's not msg box that i want.....what i need is basically a "search" box for the program i am writing....a spot to type something, an "okay" button, "clear" button, "end" button, and what not so that when i click okay a txt file opens showing the results.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Melbourne, Australia
    Posts
    212
    Rep Power
    12
    I can't remember if there is a Prompt function, but you can certainly create your own form to cater for it.
    How can I soar like an eagle when
    I'm flying with turkey's?
  8. #5
  9. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,441
    Rep Power
    4539
    Search the VB documentation for "custom dialog"
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Melbourne, Australia
    Posts
    212
    Rep Power
    12
    The function you want is InputBox.

    Something like:
    Code:
    Dim SearchWord
    SearchWord = InputBox("Enter your search word")
    How can I soar like an eagle when
    I'm flying with turkey's?
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    8
    Rep Power
    0
    Alright, I got a good start as to what I need. Thank you all very much.
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Melbourne, Australia
    Posts
    212
    Rep Power
    12
    you're welcome
    How can I soar like an eagle when
    I'm flying with turkey's?

IMN logo majestic logo threadwatch logo seochat tools logo