+ Reply to Thread
Results 1 to 3 of 3

Workaround for HYPERLINK argument length limit

  1. #1
    Registered User
    Join Date
    05-26-2010
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    20

    Workaround for HYPERLINK argument length limit

    Dear Member

    The arguments for a HYPERLINK() worksheet function seem to be limited to 256
    characters. Is there a workaround for this?

    I need to embed functions like this
    =HYPERLINK("mailto:[email protected]?subject=My Subject&body="&A1)
    in a worksheet, and I need it to accept very long body arguments. If the
    argument in this case gets much longer than 200 characters, the function
    becomes a #VALUE.

    Regards

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Workaround for HYPERLINK argument length limit

    I don't believe so, no.

    You would most likely need to revert to VBA I'm afraid (ie Hyperlinks.Add etc...)

  3. #3
    Registered User
    Join Date
    02-09-2012
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Workaround for HYPERLINK argument length limit

    I've recently run into a similar problem. Maybe what I've learned can help you. I was copying several hyperlinks from Sharepoint Datasheet view to an Excel 2007 Spreadsheet. First of all, Excel doesn't like # and & in the hyperlink address (there may be others I have not encountered). Once I got past that, the Excel hyperlinks would often open up the folder above the folder I wanted to link to. It turns out the hyperlinks were too long. I just lived with it until one day I had the epiphany to try Paste Special. It gave me the option to paste the hyperlink as HTML instead of XML. It worked! Apparently XML adds more metadata than I needed and thus made the hyperlinks too long.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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