Forum Discussion

liverlarson's avatar
liverlarson
Brass Contributor
Sep 18, 2020
Solved

workbook and sheet name via formula

I have a standard header I put on almost every excel workbook I create I have been using for years. It includes several standard items, including Workbook name and Worksheet name, which are extracted via CELL("Filename",A1) formula. 

 

For Excel workbooks that are being viewed in Excel Online, however, whether through onedrive, sharepoint, or whatever, this formula yields a #VALUE! error. When I open in desktop, it renders fine, just not when looking at browser window. 

 

Is there an alternative that I can use to display current workbook and worksheet names via a formula in a cell that is compatible with Excel Online?

  • liverlarson 

    Afraid for Excel Online that's only with Office Script, there are properties getName both for workbook and worksheet.

     

    VBA and related functions don't work in Excel Online.

63 Replies

Resources