Macro works but buttons don't

M

markvi

I have an Excel macro that activates another application, then uses "Send
Keys" functions to access that application's menus. (The menu choices result
in exporting data from the called application into an Excel workbook.)

The macro works fine if I run it either from the Alt+F8 key command or the
Tools, Macros menu. But when I try to assign the macro to either a toolbar
button or a button object on a worksheet, it doesn't run all the way through.
It will switch to the other application, but only some of the SendKeys
functions seem to take place.

Can anyone offer guidance as to why the buttons will not work? Thanks in
advance.
 

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