I write some macros via VBA, now I drag and drop the macro as a menu item add to the File menu, the problem is how to disable or enable that according to some condition, for example, when a document is open or new created, the menu item should be enable, when no document is opened, it will be disabled.
How to control that through VBA or other method, both are ok.
You should activate your macro coding in the after open command.
Regards
Michael CervantesMC Design Studio