+ Reply to Thread
Results 1 to 5 of 5

Request Hyperlink macro code to open new image per line

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    54

    Request Hyperlink macro code to open new image per line

    Dear All,

    I have list of information in column A, B, C & D. I want to click if any one of this information than we need to open its respective image. The image reference is to be match with column "A".

    I have attached sample for we have created manually linked in excel.

    Please review and let me know if you have any questions in this regard.

    Please send your idea or solutions to get this requests.

    Thanks & Regards,
    Ganesh
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by ganeshinscribe; 05-25-2012 at 02:28 AM.

  2. #2
    Registered User
    Join Date
    02-07-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Request Hyperlink macro code to open new image per line

    Dear All,

    Please help me to get solution of above my request....

    Regards,
    Ganesh

  3. #3
    Registered User
    Join Date
    07-19-2010
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Request Hyperlink macro code to open new image per line

    Remove the hyperlinks

    Please Login or Register  to view this content.

    use above code in worksheet change event it will work only if your files are in jpg format else i would suggest you add extra column at the end for extensions and then concatenate with the full path
    Last edited by ashish koul; 05-22-2012 at 10:27 AM.

  4. #4
    Registered User
    Join Date
    02-07-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Request Hyperlink macro code to open new image per line

    Sorry Ashis,

    It was not functioning.. Please help me to get this solution.

    Also, if click the A1, B1, C1, D1 column information than we need to open same image.

    Regards,

    Ganesh

  5. #5
    Registered User
    Join Date
    02-07-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Request Hyperlink macro code to open new image per line

    Hi Ashish,

    I have modified small changes and it was working fine.


    *****

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)

    Dim strFilePath As String

    If Target.Row <= Range("a60000").End(xlUp).Row And Target.Count = 1 Then

    strFilePath = ThisWorkbook.Path & "\" & ActiveSheet.Cells(ActiveCell.Row, 2).Value & ".png"

    ActiveWorkbook.FollowHyperlink strFilePath, NewWindow:=True

    End If

    End Sub

    ********


    Thanks for your great support.

    Regards,
    Ganesh

+ 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