Fishingsantafe via OfficeKB.com
Guest
Re: Onkey method
Thanks for responding. I know this can be done with the application (I heard
of someone else that did it) I just can not figure out how the two tie
together. This application uses OLE Automation like excel does. I also
coded a macro in this application a using VBA languabe and it worked just
fine so I know it understands VBA. But if I record a macro in this
application I can see It uses send keys when I go to edit.
I just want to be able to record in excel some repetitive tasks that I do in
this other application. I want to be able to use these macros that I
recorded in excel in this other application.
Dave Peterson wrote:
>You can assign a shortcut key via:
>
>Tools|macro|macros...
>select your macro from the list
>then click options
>
>I'd suggest a combination of ctrl-shift-(letter) to stay away from built in
>shortcuts.
>
>Alternatively, you can dump the shortcut keys and use menus/toolbars to invoke
>your macros.
>
>If you want to add an option to the worksheet menu bar, I really like the way
>John Walkenbach does it in his menumaker workbook:
>http://j-walk.com/ss/excel/tips/tip53.htm
>
>Here's how I do it when I want a toolbar:
>http://www.contextures.com/xlToolbar02.html
>(from Debra Dalgleish's site)
>
>======
>And your second question has a few answers. If the other application can be
>automated (like MSWord/Powerpoint/outlook/others that support VBA(????), you can
>do it fine. (Well, if you know that other application well enough to write a
>useful macro.)
>
>If the other application doesn't support automation, then maybe you could use
>Sendkeys to control it (maybe unreliable).
>
>If you have a more specific question, I'm sure you'll get a better answer.
>
>> How do you assign a short cut key to a macro I created. I am tryin to learn
>> VBA and am working on writing code. I have been reading about the onkey
>[quoted text clipped - 14 lines]
>>
>> Any help is appreciated.
>
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200601/1
Bookmarks