+ Reply to Thread
Results 1 to 2 of 2

Excel vba click on several buttons and register which button was clicked

Hybrid View

  1. #1
    Registered User
    Join Date
    07-10-2019
    Location
    Porto, Portugal
    MS-Off Ver
    Office 365
    Posts
    1

    Question Excel vba click on several buttons and register which button was clicked

    Hello community. I hope someone can help me with this.





    The idea is to click on several buttons and excel registers which button was clicked and then, when I click on a master command button, it conditionally, knows which buttons i clicked and counts a number in a specific cell that is in a table that contains all the variables layed out.



    I don't want to use drop down , check boxes etc because the rate I want to insert the data is live and it should be really easy and intuitive and user friendly.

    E.g I click on btn 1 and btn2 and when I click on the master, i set focus on the cell that crosses the variable 1 and 2 of the table, and counts a number in that place Is there any way to run the same command to multiple command buttons?



    I tried to get the caption of the button and identify its number, and with the sum of all buttons I clicked , the result would be transformed in conditions that would set me to the correct cell, but I don't think this is the advisable approach Because I have over that 70 buttons!



    IN CONCLUSION:



    I have an interface with several buttons and i want to click on several buttons and store the info. When i click the "Register info" master button i want the correct cell (which depends on the several buttons i clicked before) to be set focused that allows me to count 1 on that cell.



    THANK YOU VERY MUCH,

    Best Regards

    André

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Excel vba click on several buttons and register which button was clicked

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED, scroll down and click Manage Attachments.
    If posting code please use code tags, see here.

+ 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. Cmd button to "auto-click" other cmd buttons
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2015, 06:47 PM
  2. Excel visual basic (ctrl+click) copying clicked cells to new excell file
    By 0MMIG0 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2013, 06:17 AM
  3. [SOLVED] Disable ALL Buttons on Button Click in UserForm
    By Nu2Java in forum Excel General
    Replies: 2
    Last Post: 10-05-2012, 02:58 PM
  4. [SOLVED] VBA Assistance in Making a button to click all buttons thoughout a workbook
    By opsman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2012, 05:30 PM
  5. Replies: 3
    Last Post: 06-05-2012, 04:36 AM
  6. Click events on buttons created at runtime only work on the last button created
    By Treacle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2010, 05:44 AM
  7. Replies: 2
    Last Post: 10-26-2005, 06:05 PM

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