Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This worked:
Sub XYZ() Dim wb As Workbook Dim Btn As Shape Set wb = Workbooks.Open(ThisWorkbook.Path & "\" & "MyWorkbook.xls") ThisWorkbook.Activate Set Btn = wb.Sheets("Data").Shapes("Button 1") Application.Run Btn.OnAction End Sub Regards, Greg "Todd" wrote: Hi, I'm writing a macro which opens another sheet which also contains macros which update a DB2 database. It contains a button which is update database, i need to know how i can have my macro simulate pressing this button |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I create a macro that increments +1 by pressing a button | Excel Discussion (Misc queries) | |||
Excel: Change content A1 with B1 by pressing one button <- | Excel Worksheet Functions | |||
Sending e-mail with Lotus Notes pressing an excel button | Excel Discussion (Misc queries) | |||
Sending data in certain cells to another worksheet by pressing a button | Excel Programming | |||
pressing the "reset" button and freeing memory | Excel Programming |