+ Reply to Thread
Results 1 to 4 of 4

Button with VB to avoid pressing several keys at once

  1. #1
    Registered User
    Join Date
    03-19-2009
    Location
    MADRID
    MS-Off Ver
    Excel 2003
    Posts
    2

    Button with VB to avoid pressing several keys at once

    Hi guys! I would like to design a button (with macros),so that users of my excel page do not need to press CONTROL+SHIFT+F1+ALT,which needs to be pressed on my firm to get the new data from a central server.

    Any idea of how to do this??

    Thanks beforehand

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Button with VB to avoid pressing several keys at once

    Eh,
    Not sure if I'm reading this right, but to insert a button you'd go to the developer tab, click on Insert, and choose a button, then you click and drag on your sheet to size your new pressy thingy. I use the ActiveX command button for a lot of stuff. While in design mode, double clicking the button will bring up the VBA associated with that button.

    mew!
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Registered User
    Join Date
    03-16-2009
    Location
    Your mom's basement
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Button with VB to avoid pressing several keys at once

    Hello!!!!!!!!!

    Yes, you need Sendkeys.

    See http://www.ss64.com/wsh/sendkeys.html

    So, you need to send 'F1' while pressing control, shift, and alt...this would be
    Please Login or Register  to view this content.
    Try it out. If it doesn't work, then you may need to get a little fancier with windows api's...but it can be done.

  4. #4
    Registered User
    Join Date
    03-19-2009
    Location
    MADRID
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Button with VB to avoid pressing several keys at once

    That is exactly what i need. Thanks a lot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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