Embed/Extract VBA project does not work as expectedIssueYou can embed a Visual Basic for Applications (VBA) project in a drawing. However, it is possible that a project is loaded in memory, when it seems to be embedded in the drawing. You probably will not notice that the project is not embedded in the drawing, unless you unload the project, or pass the drawing to a colleague who finds that the project is missing. SolutionA common mistake that can lead to this situation is that you do not save the drawing after embedding the project. Use the following procedure to embed a VBA project in a drawing: - On the Tools menu, click Macro > VBA Manager.
- In the VBA Manager, select the VBA project that you want to embed in the drawing. If no project is loaded, click Load to load one.
- Click Embed.
- Click Close to close the VBA Manager.
- Save the drawing.
Important: You must save the drawing to complete the embedding process.
To extract (remove) an embedded project from a drawing, complete the same procedure, but in step 3, click Extract instead of Embed.
Support – Terms of UseAUTODESK DOES NOT GUARANTEE THAT YOU WILL BE ABLE TO SUCCESSFULLY DOWNLOAD OR IMPLEMENT ANY SERVICE PACK OR WORKAROUND, OR ANY OF THE TIPS, TRICKS, EXAMPLES OR SUGGESTIONS OUTLINED IN ANY AUTODESK PRODUCT SUPPORT TECHNICAL DOCUMENTS. TECHNICAL DOCUMENTS, SERVICE PACKS AND WORKAROUNDS ARE SUBJECT TO CHANGE WITHOUT NOTICE TO YOU. AUTODESK PROVIDES TECHNICAL DOCUMENTS, SERVICE PACKS AND WORKAROUNDS "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL AUTODESK OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF DATA, OR LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, THAT MAY OCCUR AS A RESULT OF IMPLEMENTING ANY SERVICE PACK OR WORKAROUND, OR ANY SUGGESTION OUTLINED IN ANY AUTODESK PRODUCT SUPPORT TECHNICAL DOCUMENT, EVEN IF AUTODESK OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |