+ Reply to Thread
Results 1 to 8 of 8

Jumping to another part of a spreadsheet by clicking a word

  1. #1
    Registered User
    Join Date
    01-14-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    6

    Jumping to another part of a spreadsheet by clicking a word

    Hello,

    I'm wondering if anybody could help me with this, please. I'm trying to make it so that when you click a word (for example, "June"), it brings you to that part of the spreadsheet (starts at A30, if you take June as an example).

    I tried using a hyperlink but all that does is select the cell A30 instead of moving down to it.

    Many thanks in advance.
    Last edited by VBA Noob; 01-14-2009 at 06:59 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Jumping to another part of a spreadsheet by clicking a word

    What's the difference between "selecting a cell" and "moving down to it"?

    Note: If you are hoping that the hyperlinked cell will be positioned
    in the upper left of the worksheet window, you'll need VBA code to effect that.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Guess you could save a custom view if you wanted to avoid a macro

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    01-14-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    6
    Quote Originally Posted by Ron Coderre View Post
    What's the difference between "selecting a cell" and "moving down to it"?

    Note: If you are hoping that the hyperlinked cell will be positioned
    in the upper left of the worksheet window, you'll need VBA code to effect that.
    Sorry for being vague. What I meant by "moving down to it" is exactly what you said, positioning it in the upper left of the worksheet.

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    With code it would look like

    Please Login or Register  to view this content.
    VBA Noob

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Positioning a hyperlinked target cell in the upper left

    If you're specific about your hyperlinks....then you could engage the
    Hyperlink.Follow event to position the referenced cell in the upper left.

    Here's how:
    • Right-click the sheet tab
    • Select: View Code
    That will bring you to the Visual Basic Editor (VBE) code module for that sheet
    • Copy the below code and paste it into the VBE module
    Please Login or Register  to view this content.

    Now...whenever you click a hyperlink on that sheet, the target cell will be
    positioned in the upper left.

    Is that something you can work with?

  7. #7
    Registered User
    Join Date
    01-14-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    6
    Quote Originally Posted by VBA Noob View Post
    With code it would look like

    Please Login or Register  to view this content.
    VBA Noob
    Quote Originally Posted by Ron Coderre View Post
    If you're specific about your hyperlinks....then you could engage the
    Hyperlink.Follow event to position the referenced cell in the upper left.

    Here's how:
    • Right-click the sheet tab
    • Select: View Code
    That will bring you to the Visual Basic Editor (VBE) code module for that sheet
    • Copy the below code and paste it into the VBE module
    Please Login or Register  to view this content.

    Now...whenever you click a hyperlink on that sheet, the target cell will be
    positioned in the upper left.

    Is that something you can work with?
    Many thanks to both of you for your replies. I've used what you suggested Ron, and it works a treat! Many thanks .

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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