focusing mouse pointer to the specific button in a userform

T

tom taol

userform1.show
After the following code ,and then I want to be focused with mouse
pointer to the specific button(for example, commandbutton1)
automatically.

Maybe, it would seem be used win32Api.

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

RB Smissaert

I don't think command buttons on Userforms have window handles.
You will have to work out the position of the button and move the cursor
accordingly.

RBS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top