+ Reply to Thread
Results 1 to 5 of 5

Refs to named range produce #NAME? error in 365 online

  1. #1
    Registered User
    Join Date
    10-31-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel (Office 365) v. 2110
    Posts
    4

    Refs to named range produce #NAME? error in 365 online

    Hi,

    I am working with Excel 365 both locally as well as online (via Sharepoint). I am creating macro-enabled workbooks, and everything works on my local machine, but trying to get sheet names fails on the online version of excel, and I don't understand why.

    I have tried two different ways to get Sheet Names:

    One: using the formula =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

    Two: using a dynamic named range composed using =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1)),""), and then grabbing the sheet name using the INDEX() function on this named range.

    Both work locally, both fail online.

    I presume there is some issue with the online version of excel recognising the GET.WORKBOOK call, but I'm not sure what is breaking in the first option.

    Any solution/workaround to this that will allow me to get sheet names on the online version of excel would be much appreciated.

    Thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Refs to named range produce #NAME? error in 365 online

    For the first one, I suggest you put the following formula in any unused cell:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I suspect you will find that because you are opening a file from a SharePoint site, the result will show a file path in a different format than what this formula is expecting, and it fails. It won't give you a #NAME error though. What err are you getting?

    If GET.WORKBOOK is a VBA function, it won't work in the web-based version of Excel. Web-based versions of Office products do not support VBA.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-31-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel (Office 365) v. 2110
    Posts
    4

    Re: Refs to named range produce #NAME? error in 365 online

    Hi Jeff,

    Thanks for answering so quickly. OK, so the second option is a no-goer. Indeed, you are right, the first formula produces a #VALUE! error, not a #NAME? error. The
    Please Login or Register  to view this content.
    formula in a spare cell also produces a #VALUE! error on the online sheet.

    You know, I have just realised that the people I am making this resource for can open excel files locally as well, so this is probably a problem I don't need to solve!

    Colin

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Refs to named range produce #NAME? error in 365 online

    That is strange indeed. I don't how that could give a value error. Good luck.

  5. #5
    Registered User
    Join Date
    10-31-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel (Office 365) v. 2110
    Posts
    4

    Re: Refs to named range produce #NAME? error in 365 online

    Well, it gets weirder... As I've been playing around with this, suddenly the dynamic range ones are working - it seems they just take ages to update in the online system? I'm finding the behaviour of the online version a little difficult to fathom. I think I'll just opt for a very visible warning on the cover page instructing users to open the file locally!

    Thanks very much for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. GetPivotData Returns Ref Error On Cell Refs
    By goss in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-08-2017, 03:14 AM
  2. Range.Find Method Runtime Error '91' ; MS Online Help Not Helpful
    By Chaunciliscious in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-13-2017, 12:22 PM
  3. i getting an error called subscript out of Range online 9 please help me out
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2014, 04:31 AM
  4. Named Range Error
    By matt4003 in forum Excel General
    Replies: 2
    Last Post: 06-09-2011, 07:57 PM
  5. Replies: 5
    Last Post: 06-03-2010, 01:04 PM
  6. [SOLVED] Changing Range & Cell refs.
    By Stella in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2006, 08:35 AM
  7. [SOLVED] Produce the name of the named range of activecell
    By L. Howard Kittle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2005, 08:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1