void FormatAsTable(string TableName, string TableStyleName) { listObjects = ws.ListObjects; listObjects.Add(XlListObjectSourceType.xlSrcRange, tableColumns, System.Type.Missing, XlYesNoGuess.xlGuess, System.Type.Missing).Name = TableName; tableColumns.Select(); listObjects[TableName].TableStyle = TableStyleName; }
private void RemoveHiddenObject() { ListObjects.Add(SelectedHiddenObject); HiddenObjects.Remove(SelectedHiddenObject); SelectedHiddenObject = null; }