+ Reply to Thread
Results 1 to 4 of 4

How do I create a hotkey to open a link when I'm clicked on the cell?

  1. #1
    Registered User
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2007
    Posts
    21

    How do I create a hotkey to open a link when I'm clicked on the cell?

    Hello,

    I was wondering if I can create a hotkey (preferably the space bar) to open the link when I'm clicked on a cell? I have several thousand URLs in one column and I want to be able to scroll up and down them to open without using a mouse in the quickest way possible.

    Thank you.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: How do I create a hotkey to open a link when I'm clicked on the cell?

    The code on normal module :
    Please Login or Register  to view this content.
    The code on sheet module :
    Please Login or Register  to view this content.
    Attached Files Attached Files
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Registered User
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2007
    Posts
    21

    Re: How do I create a hotkey to open a link when I'm clicked on the cell?

    Quote Originally Posted by karedog View Post
    The code on normal module :
    Please Login or Register  to view this content.
    The code on sheet module :
    Please Login or Register  to view this content.
    Thanks. However, it's no better this way, because my after pressing the space bar it leaves Excel for the webpage. Do you know how to correct this?

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: How do I create a hotkey to open a link when I'm clicked on the cell?

    This is something unavoidable, even if you click the link manually, the focus will be changed to opened browser. This also applied to all other windows programs.
    One way to overcome this, is by waiting for a small amount of time (to give the browser time to load), and then switched back to Excel.
    You cannot fast "spacing" and hoping the browser processes in background (like you open the webpage from bookmark), since this is an automated with multi process involved (not single process by browser itself).

    Change sub DoHyperlink to this :
    Please Login or Register  to view this content.

+ 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. Create Link To Open UserForm Data To Be Edited And Saved
    By BigPaulMc in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-15-2015, 11:53 AM
  2. [SOLVED] Use Vlookup as macro on clicked cell and all cell values below that clicked cell
    By harman83 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2015, 12:58 PM
  3. Track when a link is clicked
    By starfruitpancakes in forum Excel General
    Replies: 1
    Last Post: 06-17-2014, 03:54 AM
  4. [SOLVED] Create a flyout when cell is clicked
    By JA1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2013, 07:32 PM
  5. [SOLVED] Load web image when cell holding URL is clicked/double-clicked
    By jchamber00 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2013, 09:13 PM
  6. [SOLVED] code so that when a cell is clicked, a tick mark goes in the cell that was clicked
    By behnam in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-08-2013, 01:17 PM
  7. Change cell value when right-clicked/double-clicked
    By grime in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-17-2005, 09:05 AM

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