Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Hi,
Can a macro be issued from another macro in another workbook? i have a macro which copies cell contents, opens another workbook and looks in range for a matching number. i can get as far as using one macro to copy the selection and open the workbook, and another macro to select the sheet required, match the number and paste the contents. However, i cannot issue the other workbook macro from my button. i need to be able to start the other macro with a command or correct input to start it. my thought was [personal.xls]workcell ( but this doesn't work ) Kind Regards, Nigel |
#2
![]() |
|||
|
|||
![]()
Nigel,
Try something like Application.Run "myBook.xls!myMacro()" or if it has an arguement Application.Run "myBook.xls!myMacro", "hello you" -- HTH Bob Phillips "Nigel" wrote in message ... Hi, Can a macro be issued from another macro in another workbook? i have a macro which copies cell contents, opens another workbook and looks in range for a matching number. i can get as far as using one macro to copy the selection and open the workbook, and another macro to select the sheet required, match the number and paste the contents. However, i cannot issue the other workbook macro from my button. i need to be able to start the other macro with a command or correct input to start it. my thought was [personal.xls]workcell ( but this doesn't work ) Kind Regards, Nigel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro to browse for workbook, pick up data and looping | Excel Worksheet Functions | |||
Extract specific data into its own workbook via macro? | Excel Discussion (Misc queries) | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) | |||
workbook macro help | Excel Discussion (Misc queries) | |||
workbook macro help | Excel Discussion (Misc queries) |