Vba Sheet Name From Range. To name a selected range, click the name box at the left end of the formula bar, type a name, and then press ENTER. A Workbook Named Range references a specific range from anywhere in the workbook (it applies globally).
You might also want to choose the location of where the new Sheet will be inserted. In VBA, when working with Sheets, you can reference the usual Tab name: Sheets("TabName"). Note There are two types of named ranges: Workbook Named Range and WorkSHEET Specific Named Range.
This example displays the name of the worksheet that contains the active cell.
Although manually changing the name of any sheet is also a simple way of doing it.
Selected properties of the source range can be copied to the destination by using PASTESPECIAL option: Sheet "Code Name" The Sheet Code Name is it's Object name in VBA: CodeName. Name = Format(Now(), "dd-mm-yyyy") 'Changing the sheet name to a value from a cell ActiveSheet. In VBA, we have two ways of referencing a cell object one through Range, and another one is through Cells.