Consulting

Results 1 to 5 of 5

Thread: How to make all MsgBox and InputBox pop up in the same part of the screen.

  1. #1

    How to make all MsgBox and InputBox pop up in the same part of the screen.

    Hello.

    At the moment I have InputBox, MsgBox and Application.InputBox(Type=1) functions, however when running through the macro the Application.InputBox pops up in a different part to its error window and also the other InputBox and MsgBox functions.

    So how do I get them to all, say, pop up with their left hand corner at Cell H3.

    Thank you.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Why does it matter? As long as it can be seen surely no-one will care?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Some quick googling gave me this: http://social.msdn.microsoft.com/For...e-and-position

    Though it seems to be more trouble than it's worth, if you ask me :P

  4. #4
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,728
    Location
    Quote Originally Posted by hugh1994 View Post
    Hello.

    At the moment I have InputBox, MsgBox and Application.InputBox(Type=1) functions, however when running through the macro the Application.InputBox pops up in a different part to its error window and also the other InputBox and MsgBox functions.

    So how do I get them to all, say, pop up with their left hand corner at Cell H3.

    Thank you.
    The 3 built in functions might be cosmetically unaesthetic, but it were important enough, you could see if using a User Form to combine the 3 functions would work. At least it would be in the same position each time
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  5. #5
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    InputBox and Application.InputBox have Left and Top arguments that can be used to position them.

Tags for this Thread

Posting Permissions

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