Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nick Wright
 
Posts: n/a
Default Calling macros in another workbook

G'Day. I am beating my head against a brick wall with this problem. I have
probably overlooked something simple soI hope someone can help me.
I am using a main workbook to automate functions in another workbook to
return data. I have both workbooks open and I need to call a macro in the
secondary workbook to manipulate data in the secondary workbook.
I activate the secondary workbook

I then use the application.run method as follows:
Application.Run ("C:\DBModuleRelated\OtherSQL\PHI200580309(RASD)\R elative
Value Tool v 2.4 1-06-06.xls!Reset_to_Plan_Assumptions")

I then get the error message "Macro not found"

I have tried referencing the module that the macro is in as well but still
no go - what am I missing?

Cheers
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Calling macros in another workbook

Make sure that workbook is open first and don't use the full path in your
application.run line:

application.run _
"'relative value tool v 2.4 1-06-06.xls'!reset_to_Plan_assumptions

Nick Wright wrote:

G'Day. I am beating my head against a brick wall with this problem. I have
probably overlooked something simple soI hope someone can help me.
I am using a main workbook to automate functions in another workbook to
return data. I have both workbooks open and I need to call a macro in the
secondary workbook to manipulate data in the secondary workbook.
I activate the secondary workbook

I then use the application.run method as follows:
Application.Run ("C:\DBModuleRelated\OtherSQL\PHI200580309(RASD)\R elative
Value Tool v 2.4 1-06-06.xls!Reset_to_Plan_Assumptions")

I then get the error message "Macro not found"

I have tried referencing the module that the macro is in as well but still
no go - what am I missing?

Cheers


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto updating a workbook with data from another workbook Richard Excel Discussion (Misc queries) 0 November 6th 05 03:50 PM
Removing macros from workbook Darrell Excel Discussion (Misc queries) 1 October 4th 05 03:56 AM
Macros for Protect/Unprotect all sheets in a workbook Paul Sheppard Excel Discussion (Misc queries) 2 August 4th 05 04:30 PM
Unprotect Workbook Kent Excel Discussion (Misc queries) 1 February 4th 05 01:07 AM
can a workbook with macros created in excel 2003 work in excel 20. Steve Venti Excel Discussion (Misc queries) 2 December 27th 04 02:31 PM


All times are GMT +1. The time now is 11:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"