move the cursor to a button

J

Joachim Geschinsky

Hi all,

I use Win XP and XL2000

I want to move the cursor to a defined button on my sheet called
"Auswertung" when I activate this sheet.

How to solve this with vba ?

Can somebody help me ?

Achim
 
H

Harald Staff

Hi Achim

Moving the mouse pointer to this position (which will vary from one time to another) is
very complicated to do, and it is not good programming practice to "hijack" the input
devices like that.
 
J

Joachim Geschinsky

Is there no reason to use something like Range("A1").Select for BUTTONS
(llike CommandButton1.Select) ?
Achim
 
H

Harald Staff

Hi Achim

I suggest you do a few simple experiments. Here's a start:

Sub test1()
Sheet1.CommandButton1.Select
End Sub

Sub test2()
Sheet1.CommandButton1.Activate
End Sub
 
Top