Results 1 to 3 of 3

Thread: Execute Macro From Another Workbook NOT resolved

  1. #1

    Thread Starter
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068

    Execute Macro From Another Workbook NOT resolved

    So, in dealing with custom menu I see that you can assign a macro to a menu item like so 'C:\Book1.xls'!MacroName

    So how do we do this same action in VBA?

    I am going to start playing with it (Haven't even tried it yet), but I like to put these questions out there.
    Last edited by Spajeoly; Aug 15th, 2008 at 12:20 PM.

  2. #2

    Thread Starter
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068

    Re: Execute Macro From Another Workbook

    Ah Ha! Got it...

    Code:
     Run "C:\Book1.xls'!MacroName"

  3. #3

    Thread Starter
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068

    Re: Execute Macro From Another Workbook NOT resolved

    Ok, in 2007 it does not work the same. All that code will do so far is open up the work book but not execute the freakin' Macro.

    Anyone with 2007 and experience working with this?

    Update

    It would work, but what I am doing is assigning it to a hotkey in the Personal Macro Workbook. If you Alt F8 and run it from the macro list it works fine.

    Weirdest thing, it doesn't run the macro when the hotkey is pressed.

    Eh?
    Last edited by Spajeoly; Aug 15th, 2008 at 12:50 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width