
Importing and exporting macros and forms in MS Outlook
tags: export, exporting, form, forms, import, macro, MS Outlook importing, project, VBA, Visual Basic
0 comments | Add a comment
Sometimes it is necessary to pass your macro to another user. The most commonly used method to do that is "copy/paste". However, when the macro is too big or uses other elements, i.e. user-defined windows (forms), the "copy/paste" method is no longer useful. In such situation the macro import/export mechanism, which enables importing and exporting macros, forms and classes, comes in handy.
Exporting
In order to export files, select the required item and choose Export File (Fig. 1), either from the right-click context menu, or the File menu. After that, select the location to save the file.

Fig. 1. Exporting macros.
Importing
In order to import a file into a Visual Basic project, right-click the project's explorer's window, and select Import File (Fig. 2), or select from File \ Import File menu. In the new window open the element you want to import.

Fig. 2. Importing macros.
© All rights reserved. No part or whole of this article may not be reproduced or published without prior permission.