+ Reply to Thread
Results 1 to 3 of 3

Hyperlink Error if space in Sheet Name

Hybrid View

  1. #1
    Registered User
    Join Date
    08-01-2015
    Location
    New Milton, UK
    MS-Off Ver
    10
    Posts
    3

    Hyperlink Error if space in Sheet Name

    Hi,

    I am using this formula to insert a Hyperlink table of contents in my workbook.

    It works very well even if you rename, reorder the sheets, except if there are spaces in the sheet name when I get "Reference is not valid" error message.

    Suspect it needs one or two apostrophe's adding?

    =HYPERLINK("[TEMP C1485-10-20.xls]"&IFERROR(INDEX(MID(Sheets,FIND("]",Sheets)+1,255),ROW(A1),1),"")&"!A1",IFERROR(INDEX(MID(Sheets,FIND("]",Sheets)+1,255),ROW(A1),1),""))

    Workbook attached:


    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,824

    Re: Hyperlink Error if space in Sheet Name

    Try

    =HYPERLINK("'[TEMP C1485-10-20.xls]"&IFERROR(INDEX(MID(Sheets,FIND("]",Sheets)+1,255),ROW(A3),1),"")&"'!A1",IFERROR(INDEX(MID(Sheets,FIND("]",Sheets)+1,255),ROW(A3),1),""))

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Hyperlink Error if space in Sheet Name

    Try

    Create a name manger for sheet names

    =REPLACE(GET.WORKBOOK(1),1,FIND("]",GET.WORKBOOK(1))," ")

    The Try

    C6=HYPERLINK("#'"&RIGHT(INDEX(Sheetlist,ROW()-5),LEN(INDEX(Sheetlist,ROW()-5))-1) & "'!A1",INDEX(Sheetlist,ROW()-5)) and drag down.

    Check the attached file
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ 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. Hyperlink problem if space in Sheet Name
    By mubashir aziz in forum Excel General
    Replies: 13
    Last Post: 10-21-2021, 10:35 AM
  2. VBA Out of Stack Space Error 28
    By alexcapewell in forum Excel General
    Replies: 9
    Last Post: 10-13-2015, 07:01 AM
  3. [SOLVED] Problem with empty space in Hyperlink function
    By igormigor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-22-2015, 08:18 AM
  4. Out of stack space error
    By lazyengineer in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-10-2015, 02:24 PM
  5. Error 14. Out of string space.
    By sumdumgai in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2015, 11:19 PM
  6. Replies: 1
    Last Post: 02-23-2013, 05:18 AM
  7. Out of stack space error
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-20-2008, 03:47 PM

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