SpreadsheetLayouts.Remove

This function removes the specified spreadsheet layout.

Syntax Parameters Return Value
Sub SpreadsheetLayouts.Remove( _
    Index As Variant)
Index [in]

The name or item number of the Spreadsheet Layout to be removed.

Type: Variant

This function does not return a value.

SVB Example

Adding and removing custom layouts:

Option Base 1
Option Explicit
Sub Main
    'create a new spreadsheet layout entitled "New Layout"
    SpreadsheetLayouts().Add("NEW Layout",True)
    'remove the Spreadsheet "New Layout"
    SpreadsheetLayouts().Remove("NEW Layout")
End Sub