+ Reply to Thread
Results 1 to 4 of 4

Excel hyperlinks not working once file is converted to PDF

  1. #1
    Registered User
    Join Date
    05-08-2018
    Location
    vienna
    MS-Off Ver
    2016
    Posts
    2

    Excel hyperlinks not working once file is converted to PDF

    Hello, I am exporting a file from Excel to PDF through a Macro. The file consists of a table of contents and several worksheets. The table of contents is hyperlinked to all the separate sheets in the document while on Excel format.
    When exporting to PDF however I lose the hyperlinks. Do you have any suggestions on how to solve this problem?
    I have bought Adobe Pro and have activated the “Add links” check box under the ACROBAT – preferences tab.

    here is my export PDF macro:

    Please Login or Register  to view this content.
    Last edited by dominicb; 05-08-2018 at 05:32 AM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Excel hyperlinks not working once file is converted to PDF

    Good morning francescovba

    ... and welcome to the forum!

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I have added them fopr you on this occasion, so no further action is necessary on your part, but please bear in mind for future.

    Your issue is a common one. I suspect that your hyperlinks are built via a formula (=HYPERLINK)? If this is so, then your problem is right there. Replace them with a hard typed hyperlink and they should then carry across OK to .pdf format.

    You could always try using an external .pdf generating utility (I use the free version of PrimoPDF) to see if that works - the conversion utility bundled with Excel seems to be riddled with oddities like this. The downside of this would then be that your macro will no longer work.

    HTH

    DominicB

  3. #3
    Registered User
    Join Date
    05-08-2018
    Location
    vienna
    MS-Off Ver
    2016
    Posts
    2

    Re: Excel hyperlinks not working once file is converted to PDF

    Hello Dominic,

    First of all, thank you for your reply. I would like to ask you what exactly you mean by "hard typed hyperlink"? do you mean typing them by hand in the excel file or inserting by hand in the PDF after its been created. If so we need everything to be created by macro as adding anything by hand unfortunately is not an option as our client expects it that way.

    Thank you in advance for your help and cooperation.

    Francesco

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Excel hyperlinks not working once file is converted to PDF

    Hi francescovba

    Create a hyperlink by this way :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This will not translate into a hyperlink on a .pdf file. Whether your client expects it that way or not is irrelevant. It's an Excel (or a .pdf) limitation.

    Create a hyperlink by selecting a cell, and navigating to Insert > Link > Insert link and typing a web URL into the Address box WILL translate into a link in a .pdf file.

    The only way I can think of you getting around that is by using code to generate the hyperlinks. Without seeing what you have set up at the moment, I can't go further than that.

    HTH

    DominicB

+ 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. Replies: 6
    Last Post: 04-13-2017, 05:58 PM
  2. How to read cells values from a converted to excel (converted to exe file)
    By AttalaEA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2014, 02:57 AM
  3. Replies: 3
    Last Post: 01-14-2014, 10:57 AM
  4. VBA code for aligning excel file converted from text file.
    By anbub1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2013, 12:44 PM
  5. Replies: 4
    Last Post: 03-28-2013, 08:43 AM
  6. Replies: 1
    Last Post: 02-09-2013, 02:15 AM
  7. Replies: 2
    Last Post: 10-22-2012, 09:55 AM

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