View Single Post
Old 15-03-2004, 09:17
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: asign macro stored in a CDR file to toolbar icon

You can't. There are several reasons why this was not implemented. First, the macros in a document are not available when the document is closed, however the UI elements will stay on the screen. Second, in order to launch a macro, VBA needs the project, name, and macro name. Because all projects embedded in document have non-unique names by default (VBAProject), there is no way to distingush one project from another as far as running a macro is concerned.

Why do you have to put it in a document rather than in a GMS module?
Reply With Quote