+ Reply to Thread
Results 1 to 6 of 6

keyboard keypress action macro

  1. #1
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    keyboard keypress action macro

    hi folks,

    i have a bunch of tabs (over a dozen) within a large workbook. the first sheet is the index sheet with table of contents, links and all that kind of stuff.

    i was wondering if there is a way to capture a unique set to keyboard keypresses (say, ALT+Home) to trigger the index sheet to come up in case the user is on another sheet. as new tabs are being added, it is becoming increasingly difficult to quickly jump to the index sheet.

    thanks in advance for any pointers.

    best regards.
    Last edited by icestationzbra; 06-16-2011 at 05:40 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,246

    Re: keyboard keypress action macro

    Why not just put hyperlinks on each page?

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-27-2010
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: keyboard keypress action macro

    Hi,

    Use the application.onkey method for this:
    Please Login or Register  to view this content.

    Cheers,
    Dom

  4. #4
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: keyboard keypress action macro

    hi dom,

    i tried doing that by pasting the whole code in Module1, but it does not seem to be doing the trick. i have tried putting it in other places to, that does not work either.

    would you be able to share an excel file which has this working, please?

    much thanks and regards.

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: keyboard keypress action macro

    hi, icestationzbra, please check attachment, save and open workbook, activate any sheet except Index Sheet and press "Alt+Home".Closing this workbook resets this key combination action. The codes are in workbook module and a standard module.
    Attached Files Attached Files

  6. #6
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: keyboard keypress action macro

    works like a charm, waterserv. much obliged.

    thanks and regards.

+ 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