Creating Hyperlinks in Word and Excel Longer than 256 Characters
I recently came across an issue where I need to create a hyperlink in Microsoft Word 2003 that was roughly 300 characters long. Unfortunately, it appears that Microsoft had put some odd restriction in place on the maximum length of a hyperlink and it seemed I was out of luck. After a few minutes of googling turned up nothing, I was forced to find my own solution.
Although the Microsoft Word “Insert Hyperlink” box supports only 256 characters, I’ve found the underlying code supports far more. For this post, I’ll be testing with the following mock URL:

The length of this URL exceeds the Microsoft Office limit. Notice here when I try and do an Insert->Hyperlink in a new Microsoft Word document and enter URL, it gets cut off far too early. Nothing can be typed after “endAt” in my mock URL below, and there are 73 characters left that I need to fit!

Now for the clever part. Instead of trying to insert the hyperlink from the Edit Menu, or editing your existing text to add the hyperlink, press the SPACE or ENTER key after you’ve type (or pasted) the hyperlink and let Microsoft Word convert it to a hyperlink for you, as shown here:

If you right click on this text and select Edit Hyperlink, you’ll notice that Microsoft Word will now show you the full hyperlink address, including the missing 73 characters! While Microsoft wont let you type or paste a hyperlink beyond 256 characters into this box, it’s more than happy to put it in there itself.

You can now change the Text To Display field to make the hyperlink say whatever you’d like, it will continue to direct your users to the long address.
In order to perform the same trick in Excel, create the hyperlink in Microsoft Word first and then copy and paste the hyperlink from the Word document into Excel. Do not try and paste the link into the formula field or you’ll just get the text. You’ll need to paste directly into a cell.
Update 17-Sept-2009: Commenter Michael reports that you can copy and paste long hyperlinks from Microsoft Word into Microsoft PowerPoint just like we were able to do for Excel.
This was exactly what I needed. Thanks!
Thanks for this, it was very useful. My problem is slightly more complex – the URL is dynamic so I can’t paste it in. I don’t suppose you have some clever tip to persuade excel to allow more than 255 characters in a hyperlink formula ? I’ve tried splitting the URL into subsections but the HYPERLINK formula stops at 255 with a value error no matter what. If you have any thoughts, it would be wonderful. I am grasping at straws here.
Perfect for me, Chris. I needed a very long link to an InfoPath form in a Form Library in SharePoint (which passes the form server, where to save to, etc.) to appear as a “Click Here” on the last slide at the end of a PowerPoint show. Your method above won’t work for me in PowerPoint, but if I go to Word first, paste the path, hit SPACE, then Edit the hyperlink to say “Click Here”, I can then copy and paste the hyperlink into PowerPoint! Thank you so much!
@Craig
Hi Craig, unfortunately I don’t think there’s a way around the 256 character limit in the built-in HYPERLINK function, but depending on your needs we could create some VBA that would create the hyperlinks for you. Could you tell me a bit more about situation? If you’d prefer to take this offline, you can use the CONTACT CHRIS link at the top of my blog to shoot me a message.
@Michael
Hi Michael, thanks for commenting, and for testing it out with Powerpoint! I’m going to update my post to let folks know that you’ve tested this successfully.
This work around doesn’t seem to work for Work ‘08 for Mac OS. Anybody have any ideas?
Hi Chris,
unfortunately Word and Excel 2003 cut the links at 512 characters, even using this workaround. Have you got another trick for me?
I need to save links to reports within our Bugzilla-Clone and these Report URLs contain all the variables of the report. So they are very long. They range from 550 to 1000 characters.
Any ideas?
Kind Regards,
Patrick