ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   move mouse pointer to a default button(Enter) in messagebox (https://www.excelbanter.com/excel-programming/357656-move-mouse-pointer-default-button-enter-messagebox.html)

x taol

move mouse pointer to a default button(Enter) in messagebox
 

my worksheet have a button.
i press the the button. and then appear a messagebox.

And that time, i want to move the mouse pointer to the button(Enter), in
the messagebox automatically.
Perhaps, i think.... using win32api.
but i don't know.


*** Sent via Developersdex http://www.developersdex.com ***

K Dales[_2_]

move mouse pointer to a default button(Enter) in messagebox
 
If using a standard VBA MsgBox you have no control: your code pauses while
the MsgBox appears and waits for an answer.

The best solution is to replace the MsgBox with a userform, then you can
design it to do whatever you want.
--
- K Dales


"x taol" wrote:


my worksheet have a button.
i press the the button. and then appear a messagebox.

And that time, i want to move the mouse pointer to the button(Enter), in
the messagebox automatically.
Perhaps, i think.... using win32api.
but i don't know.


*** Sent via Developersdex http://www.developersdex.com ***



All times are GMT +1. The time now is 06:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com