+ Reply to Thread
Results 1 to 11 of 11

Buttons

  1. #1
    Registered User
    Join Date
    08-18-2014
    Location
    Nongprue, Thailand
    MS-Off Ver
    MS Excel for Mac; Version 16.8; 365 subscription
    Posts
    24

    Buttons

    Why is there no easy way to insert a button. Could be under "Insert" like a textbox.

    (Excel for Mac, version 15.21.1)

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Buttons

    Hi fak119

    Welcome to the Forum!!!

    Select Developer ---> Button ----> Draw the Button.

    If the Developer Tab is not visible...

    Click on Excel ---> Preferences ---> Ribbon ---> Select Developer.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    08-18-2014
    Location
    Nongprue, Thailand
    MS-Off Ver
    MS Excel for Mac; Version 16.8; 365 subscription
    Posts
    24

    Re: Buttons

    Thank you very much


    Felix

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Buttons

    You're welcome...glad I could help.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.


    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  5. #5
    Registered User
    Join Date
    08-18-2014
    Location
    Nongprue, Thailand
    MS-Off Ver
    MS Excel for Mac; Version 16.8; 365 subscription
    Posts
    24

    Re: Buttons

    Can a macro be written that adds the content of a cell (or a number) be added to another cell? I simply want to add 1 or 2 or 3, etc. to a cell that contains a value (not a formula). This macro(s) I want then assign to a button.
    Another way to put it is to add up the 1s in a cell whenever I click the button "1", and so on.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Buttons

    Hi fak,

    See if this code and the example help with your problem.

    Please Login or Register  to view this content.
    Button Click to Add to a cell.xlsm
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  7. #7
    Registered User
    Join Date
    08-18-2014
    Location
    Nongprue, Thailand
    MS-Off Ver
    MS Excel for Mac; Version 16.8; 365 subscription
    Posts
    24

    Re: Buttons

    I am so sorry, I am not that experienced with Macros.
    Does "A" mean the address of the cell where 1 has to be added?

    I tried as example (to add 1 to cell A1):

    Sub Add1()

    Cells(1, A1).Value = Cells(1, A1).Value + 1
    End Sub

    But the macro does not show as executable.

  8. #8
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Buttons

    The Cells value is the row number and column (number or letter)

    So Cells(1, "A") is the same as "A1"

  9. #9
    Registered User
    Join Date
    08-18-2014
    Location
    Nongprue, Thailand
    MS-Off Ver
    MS Excel for Mac; Version 16.8; 365 subscription
    Posts
    24

    Re: Buttons

    Hello!

    Now i tried:

    Sub Add1()

    Cells(A1).Value = Cells(A1).Value + 1
    End Sub

    The macro stops at this line.

    Where did I go wrong?

    Best regards and thank you

    Felix

  10. #10
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Buttons

    Please use code tags when posting code:

    Should be:
    Please Login or Register  to view this content.
    å

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Buttons

    Why are changing the macro? The example given (pressing the button "Add 1" will add 1, "Add 2" will add 2). This was given as am example: no need to change the macro UNLESS you want to add the number to cell other than A1.
    Attached Files Attached Files

+ 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. Radio Buttons only working on some computers, Buttons are being renamed
    By branas7180 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-12-2015, 12:03 PM
  2. Macros with buttons, spin buttons, scroll buttons, etc.
    By qqbbppdd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2013, 09:34 AM
  3. enable certain combo buttons based on user selected option buttons
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-20-2013, 06:43 AM
  4. How to insert and user of Buttons, Radio buttons, check boxes in excel sheet.
    By krishco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2013, 02:52 AM
  5. How to insert Buttons, radio buttons and check boxes in Excel
    By krishco in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2013, 08:13 AM
  6. How can I insert multiple sets of option buttons (radio buttons) in Excel 2010?
    By mickwooduclan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2013, 10:01 AM
  7. Replies: 2
    Last Post: 07-10-2005, 04:05 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