+ Reply to Thread
Results 1 to 5 of 5

Alter default position of MsgBox

  1. #1
    Forum Contributor
    Join Date
    04-03-2007
    Location
    Auckland, New Zealand
    MS-Off Ver
    2007
    Posts
    137

    Alter default position of MsgBox

    Hi,
    I've a file that uses user respone to navigate through a number of charts like a slide show (not my work - downloaded from PHD I think).

    To move from one 'slide' to the next users are required to select "Ok" on a OK/Cancel Msgbox.
    By default the MsgBox pops up in the middle of the screen.

    I'd like to control the position of the MsgBox programmatically.

    Is this possible?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Alter default position of MsgBox

    Hello Jbentley,

    That depends on the message box. If these are MsgBox dialogs then the answer is yes you can control their position, but it requires API programming. If these are VBA UserForms, the answer again is yes and are far easier to position.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Alter default position of MsgBox

    Messagebox...no. No controls exist for that. But you can use an INPUTBOX instead which does let you.

    For instance:
    Please Login or Register  to view this content.
    (Source)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Contributor
    Join Date
    04-03-2007
    Location
    Auckland, New Zealand
    MS-Off Ver
    2007
    Posts
    137

    Re: Alter default position of MsgBox

    Leigh / JB: Thanks for the replies.

    Leigh: Apologies for the duplicate post - I futzd the first post and wasn't sure if it's had submitted correctly .


    JwB
    Last edited by Jbentley; 09-17-2009 at 01:07 AM. Reason: spelling

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Alter default position of MsgBox

    A UserForm is probably more adaptable and can be positioned using Chip Pearson's Form Positioner
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1