Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 03-31-2018, 07:09 AM
NoSparks NoSparks is offline One Cell that controlls spread sheet result button to change simple fomula result Windows 7 64bit One Cell that controlls spread sheet result button to change simple fomula result Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

If you need to change button color use ActiveX buttons,
and what you indicate can be done with just one button.
Code:
Private Sub CommandButton3_Click()
' use of only one ActiveX button
With CommandButton3
    If .BackColor = vbYellow Then
        Range("A4").Formula = "=A2/2"
        .Caption = "Current division is by 2"
        .BackColor = vbCyan
    Else
        Range("A4").Formula = "=A2/3"
        .Caption = "Current division is by 3"
        .BackColor = vbYellow
    End If
End With
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
One Cell that controlls spread sheet result button to change simple fomula result How to change the formula to get this result .... LearnerExcel Excel Programming 2 02-11-2018 08:26 PM
One Cell that controlls spread sheet result button to change simple fomula result Formula result not displaying in cell (but f9 works) nath1235 Excel 4 10-06-2017 12:42 PM
One Cell that controlls spread sheet result button to change simple fomula result How To Move Focus From VLOOKUP Result to Report Sheet swindon.expat Excel 2 04-10-2016 12:15 AM
One Cell that controlls spread sheet result button to change simple fomula result Simple Spread Sheet TThomas Excel 1 04-07-2016 09:01 PM
One Cell that controlls spread sheet result button to change simple fomula result Show result of formula as a value in another cell Steve_D Excel 4 10-12-2014 07:38 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft