+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Hyperlinks Stopped Working in One Sheet of a Worksheet - "Cannot Open the Specified File"

  1. #1
    Registered User
    Join Date
    03-08-2012
    Location
    New York, New York
    MS-Off Ver
    Excel 2007
    Posts
    1

    Hyperlinks Stopped Working in One Sheet of a Worksheet - "Cannot Open the Specified File"

    My colleagues and I have created an excel worksheet that maps all of the local files of a client (mostly PDFs), and includes hyperlinks to each particular file. The file has been working fine for at least a year, and has 100s of hyperlinks. Today, many (but not all) of the hyperlinks stopped working, but only on one of the seven sheets within the worksheet. The rest of the worksheet hyperlinks work fine. The error message is "Cannot Open Specified File". However, the hyperlink address points to the correct file, and when we refresh the hyperlink by editing it and choosing the exact same local file, it works.

    Refreshing/relinking 100s of file locations will be time consuming, tedious and redundant - is there any fix out there that anyone can think of?


    Thanks

    Sam

  2. #2
    Registered User
    Join Date
    12-08-2011
    Location
    Newfoundland, Canada
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Excel 2007 : Hyperlinks Stopped Working in One Sheet of a Worksheet - "Cannot Open the

    I created a macro to open PDF's via a right-click event using Application.FollowHyperlink in an Excel 2007 worksheet. It worked fine on my PC which has Adobe reader 9 installed. But my co-workeds, using Adobe X, got an error which produced two error messages and locked up Excel for 5-10 minutes before finally opening the PDF. I found a bunch of different suggestions online but this simple solution by David Crake worked perfectly for me...

    ===================================================================
    Application.FollowHyperlink doesnt work


    Place the following into a standard module

    Code:
    Please Login or Register  to view this content.
    Then in your form place the following code on the double click event of the control


    Code:
    Please Login or Register  to view this content.
    Where StrDefaultPathAndFileName is the full path and file name that you want to open.

    This works for any type of file and opens the nominated file in its native software.
    _________________
    David Crake

    ============================================
    Last edited by arlu1201; 10-22-2012 at 09:55 AM.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Excel 2007 : Hyperlinks Stopped Working in One Sheet of a Worksheet - "Cannot Open the

    nlexcel,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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