TemplateRemoveExtData Property

Microsoft Excel Visual Basic

True if external data references are removed when the workbook is saved as a template. Read/write Boolean.

Example

This example saves the workbook as a template that contains no external data.

With ThisWorkbook
    .TemplateRemoveExtData = True
    .SaveAs "current", xlTemplate
    .TemplateRemoveExtData = False
End With