Excel Set Worksheet Name To Cell. Let's say you want to add information to a spreadsheet report that confirms the location of a workbook and worksheet =CELL("filename"). To be able to use a worksheet-level name in another. so that if a sheet's name is "kaput" it should appear "this sheet is called kaput".
As an example, below code could be included in an Excel file with a worksheet called Locations.
Such as, type in C:C to select entire column C, when type in C:E, it'll select columns range from C to E.
If the worksheet name includes spaces, enclose it in single I needed to pull a phone number off the end of a string in a cell that was in a set location on a large number of different worksheets in a workbook. To return the sheet name in a cell, use CELL, FIND and MID in Excel. You set what cell you want the name to come from in the vba code and whatever text or numbers are pulled from there become that sheets name.








