public void RenameSheetCommand(Excel.Workbook workbook, string oldName,
                                       string newName, ReferenceEnum referenceType = ReferenceEnum.ByName)
        {
            bool isAnInteger = int.TryParse(oldName, out int indexValue);

            if (referenceType == ReferenceEnum.ByIndex && isAnInteger == true)
            {
                workbook.RenameSheet(indexValue, newName);
            }
            else
            {
                workbook.RenameSheet(oldName, newName);
            }
        }