+ Reply to Thread
Results 1 to 2 of 2

MsgBox - place and size?

  1. #1
    Einar
    Guest

    MsgBox - place and size?

    Hi everybody.
    How do I Place a msgbox or textbox right over a spesific cell?

    My makro looks like:

    Sub MyMacro()
    Sheets("One").Activate
    Range("A17:D17").Select
    MsgBox "Text" & Chr(13) & Chr(13), vbInformation + vbOKOnly, "Title"
    End Sub

    I have tryed, top:=100, left:=100, but it wont work.
    I want to place the MsgBox rigth over A17:D17

    Is there enyone who know how to set the size of the MsgBox too?

    Einar

  2. #2
    Tom Ogilvy
    Guest

    Re: MsgBox - place and size?

    If you want that type of control, the easiest thing to do is use a userform.
    Otherwise, you will have to utilize the windows API to handle the message
    box as a window.

    In any event, the msgbox sizes dynamically according to the Message in the
    box. It doesn't accept any arguments for size or position.

    --
    Regards,
    Tom Ogilvy



    "Einar" <[email protected]> wrote in message
    news:[email protected]...
    > Hi everybody.
    > How do I Place a msgbox or textbox right over a spesific cell?
    >
    > My makro looks like:
    >
    > Sub MyMacro()
    > Sheets("One").Activate
    > Range("A17:D17").Select
    > MsgBox "Text" & Chr(13) & Chr(13), vbInformation + vbOKOnly, "Title"
    > End Sub
    >
    > I have tryed, top:=100, left:=100, but it wont work.
    > I want to place the MsgBox rigth over A17:D17
    >
    > Is there enyone who know how to set the size of the MsgBox too?
    >
    > Einar




+ 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