CELL Function We can use the CELL Function to return the file path, name, and sheet by inputting "filename" 1 = CELL("filename") To get the current worksheet's name, you can use the function with or without the optional reference argument, referring to any cell on the current tab 1 = CELL("filename",A1)I need to take the contents of a cell and use it as a variable in a mcaro For example If the Value of Cell B1 is "Outback", the Macro will select the Outback sheet, but if B1 had a value of "Damon's", than I On the Paste Name dialog box, all the named cell ranges display in the Paste name list To insert the entire list into the worksheet, click "Paste List" The list is inserted starting in the selected cell You might want to widen the columns so the names don't get cut off
3 Quick Ways To Get A List Of All Worksheet Names In An Excel Workbook Data Recovery Blog