• Macro Help (2007)

    Author
    Topic
    #452769

    I would like to know can you program a macro to simulate pressing the ALT key.

    I would like to attach the macro to custom button on a toolbar, but cannot find anything for the ALT key.

    Viewing 0 reply threads
    Author
    Replies
    • #1118708

      What exactly would you like to accomplish? Pressing the Alt key by itself doesn’t do much…

      • #1118736

        I am running Office 2007 on Vista and when you press the ALT key you get options to perform other functions (See attached screen shot). I would like my macro to run thes options that are activated by the ALT key.

        • #1118737

          Try the SendKeys action with % as argument – % is the code for Alt when using SendKeys.

          The VBA equivalent would be

          SendKeys “%”

    Viewing 0 reply threads
    Reply To: Macro Help (2007)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: