1. If the Developer tab is not available, do the following to display it:
    1. Click the Microsoft Office Button button image, and then click Excel Options.
    2. In the Popular category, under Top options for working with Excel, select the Show Developer tab in the Ribbon check box, and then click OK.
  2. To set the security level temporarily to enable all macros, do the following:
    1. On the Developer tab, in the Code group, click Macro Security.

      excel ribbon image

    2. In the Macros Settings category, under Macro Settings, click Enable all macros (not recommended, potentially dangerous code can run), and then click OK.

    Note To help prevent potentially dangerous code from running, we recommend that you return to any of the settings that disable all macros after you finish working with macros.

  3. Open the workbook that contains the module that you want to copy and the workbook that you want to copy the module to.
  4. On the Developer tab, in the Code group, click Visual Basic.
  5. On the View menu, click Project Explorer button image.
  6. Drag the module that you want to copy to the destination workbook.