XLL+ Class Library (7.0)

CXlActiveSheetRestorer::CXlActiveSheetRestorer

Constructs a CXlActiveSheetRestorer object

CXlActiveSheetRestorer(
   bool saveNow = true
);
CXlActiveSheetRestorer(
   const char* workbookName,
   bool saveNow = true
);
CXlActiveSheetRestorer(
   const wchar_t* workbookName,
   bool saveNow = true
);

Parameters

saveNow

If set to false, then this object will not save the active sheet, nor will it restore it on destruction unless Save has been called in the meantime.

If true, then the object will save the active sheet during construction, and will restore it at destruction.

workbookName

The name of the workbook whose state is to be saved and restored. If omitted, then the name of the active workbook will be used.

Requirements

Header: xlpstatehelpers.h

See Also

CXlActiveSheetRestorer Class | CXlActiveSheetRestorer Methods