+ Reply to Thread
Results 1 to 3 of 3

Command Button

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Question Command Button

    Greetings ,

    I was hoping to simplify the macro that I am using, as I have over 50 buttons that I use. It is rather time consuming every time I have to add a new product.

    Below I have attached the code.

    Ideally if a command button could simply be placed within a cell, where by, the adjacent cell would be affected. If this something like this would work it would save a lot of time writing macros.

    Any help would be appreciated.

    I am currently using this code for a command button.
    Please Login or Register  to view this content.
    As well as this one

    Please Login or Register  to view this content.
    Terrance

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

    Re: Command Button

    Terrance

    If you used buttons from the Forms toolbar you could assign the same macro to all of them.

    Within the macro you could use Application.Caller to identify which button was clicked to trigger the macro and from that, via the TopLeftCell property, get the relevant range to apply the macro to.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Surrey B.C.
    MS-Off Ver
    2013
    Posts
    155

    Re: Command Button

    Thank you for your reply

    Maybe I am not understanding, that seems similar to what I have already been doing.

    I was hoping for two command buttons that adds an integer and one that subtracts.
    whereby, I can populate the entire sheet with as many as 50 plus buttons using those same two buttons.

    Ideally those buttons by the nature of their location would operate the adjacent cell.

    Is there command buttons that can do this? It something similar?

+ 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. Replies: 2
    Last Post: 02-02-2016, 10:27 PM
  2. Insert Command Button that will Activate Command Button on a Different Sheet
    By realvirtuality1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2016, 02:11 PM
  3. VBA code to create command button. Print all sheets then delete command button.
    By Declamatory in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-15-2015, 05:18 PM
  4. Make a Command Button Visible from another Command Button
    By trevor2524 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2014, 10:11 AM
  5. Create a command button with code with a command button
    By jakara in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2013, 01:28 PM
  6. Replies: 1
    Last Post: 09-17-2007, 09:57 PM
  7. [SOLVED] command button:Can i use a command button to open diffrrent sheets
    By Hellboy in forum Excel General
    Replies: 0
    Last Post: 11-03-2005, 11:00 AM

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