Join Gini von Courter for an in-depth discussion in this video Export or import a macro module, part of Word: Automating Your Work with Macros.
- [Instructor] I'm back in the Visual Basic editor…to show you one more way that you can…quickly add macros or that you can…send macros to someone else or save them…for use in another installation of Microsoft Word,…and that's by importing and exporting macros.…All of the macros in normal.m are currently in New Macros,…we don't have any macros listed in this document.…But if I wanted to take New Macros and be able…to export them, I can do that.…
I can right-click and I can export a file,…and that file will have NewMacros.bas.…I'm going to put this out on my desktop for just a moment.…And these are modules in Visual Basic.…Then if I wish to import that same module…on another machine, I can do that,…simply by going to File, Import File.…And it's looking for a Visual Basic file,…FRM file, which will be a form,…but we have NewMacros.bas.…
And I can open this and it will be added, then,…into this particular template, the normal template.…If I wanted to add it in somewhere else,…then I would go to a different template…
- List the steps required to run the macros on a document you created when you open the document and see a SECURITY WARNING banner message.
- Explain how to run a macro.
- Identify where to save a building block if there is no logical gallery for it.
- Recall the best way to create an auto macro.
- Recognize why you would create a macro in the Visual Basic Editor rather than using the Macro Recorder.
- Identify what you can add any existing macro to.