Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Size and Location of the MsgBox | Excel Discussion (Misc queries) | |||
MsgBox Font Size change | Excel Programming | |||
copy charts & paste as picture, hide chart, size & place same picture as chart | Excel Programming | |||
Can we write VBA code to set all column/row's size back to default size? | Excel Programming | |||
Can we write VBA code to set all column/row's size back to default size? | Excel Programming |