Share via


If I Change an Existing Macro, When Does That Change Become Effective?

Home Page (Macros)OverviewHow Do I TopicsFAQReference

To make changes effective when you run a macro, you must first reload the file containing the macro.

If the file is already loaded, Visual C++ will reload it the next time you run any macro in it. If you run a macro before saving the changes to it, Visual C++ will apply the changes as long as the file is open. However, if you close the file without saving the changes, they are lost.

If the file is not loaded, you can reload it in two ways. If the file is open in the text editor, you can reload it by clicking the right mouse button and choosing Reload Macro File. If the file is not open, you can reload it from the Add-ins and Macro Files tab in the Customize dialog box (Tools menu, Customize command).