+ Reply to Thread
Results 1 to 2 of 2

Calling macros in another workbook

  1. #1
    Nick Wright
    Guest

    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)\Relative
    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. #2
    Dave Peterson
    Guest

    Re: 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)\Relative
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1