call a function with parameters from custom menu in Project 2007

R

Rainer Kegel

Dear all

I've posted this question a few weeks ago, but unfortunately haven't
received any answer yet. So I am posting it once more because I can't
believe that I'm the only one having this problem.

I wonder whether my problem has the same cause as the one posted by Gordon
Muir "Running a Macro from a toolbar using onAction" on the 24th of may...

I have a custom toolbar with menus calling vba subs which are stored in the
global.mpt of MSP 2007. Some of the subs have parameters. Up to MSP 2003 it
was possible to call such a sub from a menu with the statement 

call mySub("myParam")
 
entered in "Assign Macro..." when customizing menus. This doesn't seem to
work anymore in MSP 2007. If I click on such a custom menu nothing happens.
I can call a sub within global.mpt without arguments with

Macro "myOtherSub" 

but how do I do it when I need to pass parameters? 

Thanks a lot 
Rainer  
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top