WORKBOOK.NAME macro

Equivalent to clicking the Rename command on the Sheet submenu of the Format menu. Renames a sheet in a workbook.

Syntax

WORKBOOK.NAME(oldname_text, newname_text)

WORKBOOK.NAME?(oldname_text, newname_text)

Oldname_text    is the name of the sheet that you want to rename.

Newname_text    is the new name of the sheet.

Remarks

Return to index