Merge Workbooks
    • Dark
      Light
    • PDF

    Merge Workbooks

    • Dark
      Light
    • PDF

    Article summary

    Merge Workbooks is a utility that allows you to merge a worksheet that exists within one Excel file and insert it into a Report Writer file, either as a worksheet replacement or an addition. This is useful if you need to repair a worksheet, or add worksheets you created in one workbook into a new project file.

    The Merge Workbooks function should always be used if the worksheet:

    • Contains user customization (range names).

    • Is a default Report Writer worksheet.

    The function can be accessed from the LightBox Ribbon in Excel. 

    How to Merge Worksheets from One Excel File to Another

    1. Begin by opening two Microsoft Excel workbooks. One should contain the worksheet(s) you wish to transfer, and the other should be the workbook you wish to transfer into.
    2. Open Merge Workbooks. This can be done from either Excel workbook.
    3. In the Source Workbook drop-down, select the Excel workbook that contains the to-be-transferred worksheet(s).
    4. In the Target Workbook drop-down, select the workbook that you'd like to transfer the worksheet(s) into.
    5. In the Source Workbook column, select the worksheet(s) you wish to transfer.
      1. You may transfer multiple worksheets by holding CTRL on your keyboard and clicking on each entry.
    6. Click Move Selected 
    If a copy of the to-be-transferred worksheet exists in the Target Workbook, a dialog box will appear.
    1. Clicking Yes will replace the worksheet altogether.
    2. Clicking No will cause your newly transferred worksheet to exist as a copy alongside the original worksheet.
    3. Clicking Cancel will close the window.

    How to Prepare a Non-Report Writer Worksheet to Merge

    User-created worksheets must be assigned an ‘internal' name in order to be transferred between workbooks using the Merge Workbooks function. If the worksheet was created in a Report Writer workbook, users cannot do this themselves, as access to Report Writer’s VBA code is password-locked. In these cases, the workbook must be sent to support@narrative1.com for support to set it up. Because of this, it might be a good idea to create new worksheets in a non-Report Writer workbook, name it using the instructions below, and then use Merge Workbooks to insert it.

    After creating a custom worksheet in a non-Report Writer workbook to import into Report Writer, you’ll need to assign it an "internal” name.

    1. If you haven’t already done so, you will need to enable the Developer ribbon. To do this, right-click the grey, unused space in any ribbon in Excel and select Customize the Ribbon.

    2. On the resulting screen, in the list of ribbons on the right, click Developer.
    3. Once this is done, click OK, click the Developer ribbon, and click Visual Basic on the left.
    4. You will be taken to a screen like the one below. Click the + sign beside your workbook on the left, then click the + sign beside Microsoft Excel Objects.
    5. Your sheet should be visible with its name in parentheses. The first name shown will be a default name, like “Sheet1” or “Sheet2.” To assign the internal name, just click the worksheet. Then in the Name field below, change the name given to the internal name you wish to assign. Press Enter to confirm the change.Note: This field does not accept spaces or special characters. It is a good practice to simply duplicate the “display” version of the sheet Name with no spaces. For example, if the display name is "My New Sheet," enter "MyNewSheet" in the Name field.
    6. Once the name has been entered, click the Save button in the upper left or press CTRL-S on your keyboard. After this, your custom sheet can be merged into a Report Writer workbook using the Merge Workbooks tool.

    For assistance with this process, contact Report Writer Support at support@narrative1.com 



    Was this article helpful?