Hi,
How do I simulate pressing the keys using a macro in Excel. For
example, if I want to simulate pressing the keys Alt+H+A, what should I
do in the macro?
Thanks.
Hi,
How do I simulate pressing the keys using a macro in Excel. For
example, if I want to simulate pressing the keys Alt+H+A, what should I
do in the macro?
Thanks.
Try something like:
Private Sub CommandButton1_Click()
Application.SendKeys ("%ha")
End Sub
If you execute from the vb editor, you get the About box for Visual
Basic, but this brings up about for Excel.
If it is the About dialog you want to invoke then
![]()
Sub About() Application.CommandBars.FindControl(ID:=927).Execute End Sub
Ivan! Sweet! Where do you look for the ID numbers?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks