+ Reply to Thread
Results 1 to 3 of 3

Add Hyperlink to existing Code

Hybrid View

  1. #1
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Add Hyperlink to existing Code

    Hi

    I'm using this code:
    HTML Code: 
    And it already makes an Hyperlink in Colum A to the sheet that it makes.
    But I'm trying to put a code in here so when it makes the new sheet and the hyperlink it also makes a hyperlink in Colum L that would have the same name as the hyperlink in Colum A just .pdf attached to it and would be a hyperlink to a .pdf file.

    Like this:

    Row 2: Colum A= 0001-2011; Colum L=0001-2011.pdf
    Row 3: Colum A= 0002-2011; Colum L=0002-2011.pdf

    The hyperlinks in Colum L should be connected to \Naročila\target.value.pdf

    Help Please.
    Attached Files Attached Files
    Last edited by stojko89; 10-20-2011 at 06:49 AM.

  2. #2
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Add Hyperlink to existing Code

    Hi so I'm tryn this code now for the add.hyperlinks:

    HTML Code: 
    It makes the hyperlink
    You can press it but it says unable to open file.
    When I go check if the hyperlink is directed to the right file I see it's like this:
    \Naročila\#Target.Value.pdf

    So what can I use so the makro will search for the target.value of the selected cell plus adding the .pdf extention at the end so it finds this:
    Cell A35 = 00037-2011 and this is the selected cell.
    so the hyperlink direction should look like this:
    \Naročila\00037-2011.pdf

    Please help

  3. #3
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Add Hyperlink to existing Code

    So nevermind...After a few hours of searching on the forum I found an answer that helped me

    In case anyone will have the same problem or a problem like this.
    I'm using this code that searches for the target name with .pdf extention and it makes the hyperlink:
    HTML Code: 
    You just have to play with the code a little to make it work in your workbook for the stuff you want.

+ 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