View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
RB Smissaert RB Smissaert is offline
external usenet poster
 
Posts: 2,452
Default focusing mouse pointer to the specific button in a userform

Look at the GetCursorPos and SetCursorPos API's.

RBS


"tom taol" wrote in message
...


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 ***