+ Reply to Thread
Results 1 to 9 of 9

Button to activate a hyperlink (but going always to the top of the screen)

  1. #1
    Forum Contributor
    Join Date
    11-26-2008
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    326

    Button to activate a hyperlink (but going always to the top of the screen)

    I have "Hyper-link" buttons assigned (on each page) so I can jump
    to another page in a long worksheet. Is there a way to make the "assigned cell"
    go always to the "top / left" of the page?

    As it is now, when your at the bottom area of the page "and hyperlink up",
    it is proper (the "linked" cell is always at the top). But when hyperlinking down,
    on the page, the cell is always at the bottom of the screen.
    Page heights may vary, so Im just trying to find a way for it to always
    "hyper-link" to a cell, (with the cell placement at the top of the page)

    I hope this make sense.
    Any help is greatly appreciated. Thanks!!

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Button to activate a hyperlink (but going always to the top of the screen)

    Hi Richard,
    Here's a trick that I use, add this code to the sheets containing hyperlinks.
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Contributor
    Join Date
    11-26-2008
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    326

    Re: Button to activate a hyperlink (but going always to the top of the screen)

    Thanks, I added it. but the links still do not always go to the top.
    Not sure if I added the VBA properly. I have a lot of VBA on this worksheet
    and I do not really understand most of it.
    I was hoping for a "non-VBA" way to do this.

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Button to activate a hyperlink (but going always to the top of the screen)

    Hello richard11153,

    Perhaps something as per the attached sample workbook?
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  5. #5
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Button to activate a hyperlink (but going always to the top of the screen)

    Hi again,

    I don't know any non-VBA trick unless by referencing other cells below your actual target to "force" a window scroll.

    Note : The code as to go in a sheet Module. For example, if your hyperlink is in Sheet2, place the code in Sheet2 Module.

  6. #6
    Forum Contributor
    Join Date
    11-26-2008
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    326

    Re: Button to activate a hyperlink (but going always to the top of the screen)

    Yes, I see how that works. But mine are all in one, very long sheet,
    im juts moving up & down a lot of pages (not within separate "tabs"
    or worksheets).
    Maybe there is no way to do this.

  7. #7
    Forum Contributor
    Join Date
    11-26-2008
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    326

    Re: Button to activate a hyperlink (but going always to the top of the screen)

    Yes, I see how that works. But mine are all in one, very long sheet,
    im juts moving up & down a lot of pages (not within separate "tabs"
    or worksheets).
    Maybe there is no way to do this.

  8. #8
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Button to activate a hyperlink (but going always to the top of the screen)


    I just tried my solution on a very long worksheet with linked cells and everything is fine...

  9. #9
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Button to activate a hyperlink (but going always to the top of the screen)

    Hi richard11153,

    Perhaps if you could uplaod a sample workbook, we would be able to assist you better.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Thank you.

+ 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. activate application & take screen shot
    By akulka58 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2013, 06:40 AM
  2. Activate computer screen
    By joe12613 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2009, 12:59 PM
  3. Using a Active X command button to activate a hyperlink
    By 2funny4words in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-27-2009, 12:18 PM
  4. Use a command button to activate a hyperlink
    By penfold in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-27-2008, 09:33 AM
  5. frustrated with VBA select/activate and screen flips
    By William DeLeo in forum Excel General
    Replies: 8
    Last Post: 06-13-2006, 04:20 PM

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