ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Macro works but buttons don't (https://www.excelbanter.com/excel-discussion-misc-queries/92960-macro-works-but-buttons-dont.html)

markvi

Macro works but buttons don't
 
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.
--
- markvi


All times are GMT +1. The time now is 09:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com