Expand Minimize

Import File and Export File Commands (File Menu)

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Adds existing modules and forms to your project or saves a module or form as a separate file.

Import File

Displays the Import Files dialog box which allows you to add an existing module or form to the project. A copy of the file is added to the project and the original file is left intact. If you import a form or module with the same name as an existing one, the file is added with a number appended to it.

Imported components appear in the Project Explorer window.

Toolbar shortcut: Gg278443.tbr_impt_ZA01201709(en-us,office.14).gif. Keyboard shortcut: CTRL+M.

Export File

Displays the Export File dialog box so that you can extract the active form or module from the project. The file is copied into an external file.

Not available if you have not selected a file in the Project Explorer.

Toolbar shortcut: Gg278443.tbr_expt_ZA01201702(en-us,office.14).gif. Keyboard shortcut: CTRL+E.

© 2015 Microsoft