Hi all,

I have 3 macro's to create the menu in my access-form.

MACRO 1:

DoCmd.AddMenu "&File", "M_File", "File"
DoCmd.AddMenu "&Edit", "M_Edit", "Edit"

MACRO "M_FILE":



Now I want to change the "macro name" with vba... I cannot find how.
I tried to replace "copy" by "=mycopyfunction()", but this does not work.

How can I replace the macro name (the name displayed in my menu) by a name given by a vba function?


thank you!