Choose Custom Header or Custom Footer, depending on where you want the sheet name to appear Put the cursor in the Left, Center or Right sections and and select the icon that looks like a spreadsheet with multiple tabs at the bottom This will put the formula &Step 1 Right click the worksheet in the Sheet Tab that you will dynamically name it by a cell value, and select View Code from the rightclicking menu Step 2 In the opening Microsoft Visual Basic for Applications window, paste the following VBA code into the module window Note This VBA can dynamically rename the worksheet based on the There are formulas for each variation of the sheet name, file name and path The main part of the formula is the =CELL () formula The CELL formula looks something like this =CELL ("filename",A1) That means that the CELL formula we have to use has two parts The first part just says "filename" It is important to add the quotation marks
Vba Rename Sheet How To Rename Excel Worksheet Using Vba Code