+ Reply to Thread
Results 1 to 3 of 3

Rectangle Shape as Control Button

  1. #1
    Forum Contributor
    Join Date
    09-29-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    222

    Rectangle Shape as Control Button

    I have inserted in my sheet1 four rectangle shapes which I will assign Macros and use as control buttons. Is there a way to have each button activated by the use of ALT Key+Letter similar to the accelerator property in the VBA properties?

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Rectangle Shape as Control Button

    Hi oskar44,

    See the attached file which uses the following Macros to do what you asked for. Please note that certain Alt Key and letter combinations are preassigned by Excel such at 'Alt E' for Edit.

    The code below uses 'Alt' 1 thru 'Alt' 4. The numbers are the numbers above the letters, and NOT the numbers on the Numerical Keypad. The Numerical Keypad numbers require Special Codes. You can customize it to use whatever combinations you like.

    In the ThisWorkbook Module:
    Please Login or Register  to view this content.
    In an ordinary Code module such as Module1:
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Forum Contributor
    Join Date
    09-29-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    222

    Re: Rectangle Shape as Control Button

    Thank you Lewis for your time, that's pretty good

+ 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. Define Shape [Rectangle / L Shape] by cell content
    By SonOfOdin in forum Excel General
    Replies: 8
    Last Post: 12-30-2014, 06:17 AM
  2. [SOLVED] vba import picture change shape to rectangle
    By alexshaw76 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2014, 01:01 PM
  3. Code to click a shape which is a control button
    By Alexander_Golinsky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2014, 12:30 PM
  4. [SOLVED] Use a button to control a macro that inserts an image into a shape or resets the shape
    By nwb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2013, 04:41 PM
  5. Adding a colored shape (rectangle) to a footer
    By tommyfernandez in forum Excel General
    Replies: 2
    Last Post: 12-19-2012, 02:34 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