+ Reply to Thread
Results 1 to 6 of 6

Hyperlink target showing on top left corner of screen (Using image not cell)

  1. #1
    Registered User
    Join Date
    01-29-2013
    Location
    Canberra
    MS-Off Ver
    Excel 2003
    Posts
    2

    Hyperlink target showing on top left corner of screen (Using image not cell)

    Hi All,

    Have a problem, hope you can help.

    I'm trying to navigate through my worksheet with hyperlinks. When I click on the hyperlink the correct cell is activated, but is visible on the right side of the screen which meens I need to scroll to the right to see the contents of the section. When I click on the hyperlink I would like to see the target cell in the top left of the screen.

    I've seen the following solution posted in many forums including this one but is not working for me.

    Please Login or Register  to view this content.
    This event macro seems to only get triggered if the hyperlink is contained within text in a cell as opposed to in an image/object. My hyperlinks consist of a series of flow charts which act as a navigation road map for the spreadsheet. Does anyone have any clue how to trigger this event macro if the hyperlink is contained in an image (box in a flow chart)?


    Much Appreciated,
    Mo
    Last edited by vlady; 01-29-2013 at 01:28 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Hyperlink target showing on top left corner of screen (Using image not cell)

    Hi Mo T and welcome to the forum

    Instead of using VBA for the links, you could use this formula instead...

    =IFERROR(HYPERLINK("#"&"'sheet1'!Aa100","this goes to sheet1 A1"),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Hyperlink target showing on top left corner of screen (Using image not cell)

    The Code is working fine for me.

    I believe you have wrongly pasted the code in Sheet Code Window instead of THISWORKBOOK code window


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    01-29-2013
    Location
    Canberra
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Hyperlink target showing on top left corner of screen (Using image not cell)

    Quote Originally Posted by :) Sixthsense :) View Post
    The Code is working fine for me.

    I believe you have wrongly pasted the code in Sheet Code Window instead of THISWORKBOOK code window
    Thanks for the response. But the code works fine as long as the hyperlink is within a cell. It doesn't work if the hyperlink is in an object. See attached example. The code works if I click on the links on row 5. But it doesn't work if I click on either of the blue boxes. That's where my problem is.

    Example.xlsm


    Thanks FDibbins but I'm not sure how I can use formulas like that with images/shapes.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Hyperlink target showing on top left corner of screen (Using image not cell)

    The reason is that the code is not running with Object since it is related to sheet event.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Hyperlink target showing on top left corner of screen (Using image not cell)

    Add the below code's in Standard Module

    Please Login or Register  to view this content.
    Do right click on 1st object and select Remove Hyperlink and do it for the second one also.

    Do right click on 1st object and select ASSIGN MACRO AND select ObjHyperlink1 and do it for the second one by assigning ObjHyperlink2.

    Check the attached file for details.
    Attached Files Attached Files

+ 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