Why is there no easy way to insert a button. Could be under "Insert" like a textbox.
(Excel for Mac, version 15.21.1)
Why is there no easy way to insert a button. Could be under "Insert" like a textbox.
(Excel for Mac, version 15.21.1)
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.
Thank you very much
Felix
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.
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.
Hi fak,
See if this code and the example help with your problem.
Button Click to Add to a cell.xlsm![]()
Please Login or Register to view this content.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
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.![]()
The Cells value is the row number and column (number or letter)
So Cells(1, "A") is the same as "A1"
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
Please use code tags when posting code:
Should be:
å![]()
Please Login or Register to view this content.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks