Excel 2010-Now
Excel 2007
Excel 2003
Tips & Tricks
Excel Forum
Course Index CIG Excel Book
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Excel: Button to Change Value
By Richard Rost   Richard Rost on LinkedIn Email Richard Rost   18 years ago

Q: I need a button on my Excel sheet that I can press just to increase the value of a specific cell by a set amount. For example, I have my total sales in cell B3, and each time I make another sale, I want to add $20 to this value. Sometimes it's $100. It's usually either 20, 50, 100, or 200. Sure, I could do it with the keyboard, but can I make a button I can just click on? - Kyle

A: Sure. You'll need to know how to access the VBA editor, but it's not hard. Let's say you want to make a button that adds 20 to whatever the value in cell B3 is. Just assign a macro with the following VBA code:

Range("B3") = Range("B3") + 20

That's it. Each time you click the button, B3 gets 20 added to it. If you want different dollar values, or you want to change different cells, you could just make multiple buttons.

Comments for Excel: Button to Change Value
 
Age Subject From
14 yearsExcel Button to Change ValueSifatkhan
18 yearsNo SubjectRichard Rost
18 yearsNo SubjectJacqueline

 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to Excel: Button to Change Value
Get notifications when this page is updated
 
 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 1/22/2026 6:29:29 PM. PLT: 0s
Keywords: excel macro vba tips  PermaLink  Excel: Button to Change Value