+ Reply to Thread
Results 1 to 2 of 2

VBA Assign Shortcut Key to Hyperlink

  1. #1
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    VBA Assign Shortcut Key to Hyperlink

    Hi I wonder whether somone may be able to help me please.

    The script below extracts a list of files from a specific directory and lists them on a sheet with a hyperlink inserted on each row so the user can save the file.

    Please Login or Register  to view this content.
    What I'm now trying to do is make some additions to the script that allows the user to select the hyperlink via a shortcut.

    The piece of script which creates the hyperlink is as follows:

    Please Login or Register  to view this content.
    and I've tried using the following within this but without success:

    Application.MacroOptions , Description:="", ShortcutKey:="C"
    and
    Application.OnKey "^c"
    From the reading I've done I know how to run a macro from a shortcut key, but this isn't the whole macro I'm wanting to run.

    I just wondered whether someone could possibly look at this please and let me know where I've gone wrong.

    Many thanks and kind regards

    Chris

  2. #2
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Re: VBA Assign Shortcut Key to Hyperlink

    Hi all, thank you for looking at my post.

    I just wanted to let you know that I've managed to get this to work by recording a macro so the solution is as follows:

    Please Login or Register  to view this content.
    Many thanks and kind regards

    Chris

+ 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. [SOLVED] How to assign a macro to a shortcut
    By Stebobibo in forum Excel General
    Replies: 3
    Last Post: 02-09-2015, 05:06 PM
  2. assign keyboard shortcut
    By kiany406 in forum Excel General
    Replies: 3
    Last Post: 11-30-2008, 08:39 PM
  3. [SOLVED] assign shortcut using ALT
    By John in forum Excel General
    Replies: 6
    Last Post: 08-15-2005, 01:05 PM
  4. Assign Specific Function to Shortcut
    By CA_Becker in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-08-2005, 01:06 PM
  5. assign a symbol to a shortcut key
    By Martin Hennegriff in forum Excel General
    Replies: 1
    Last Post: 03-10-2005, 05:06 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