Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
My cell to like this
=(A2+A3) I would like this total to only be active if I click on the cell. In other words can the cell be turned on or off by just clicking on it? -- Joe |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Not without using VBA
You want the value toggled on/off or just toggle the font white or black? This event code will toggle the formula on or off. Private Sub Worksheet_SelectionChange(ByVal Target As Range) Const myRange As String = "A1" On Error GoTo stoppit Application.EnableEvents = False If Not Intersect(Target, Me.Range(myRange)) Is Nothing Then With Target If .Value = "" Then .Formula = "=A2+A3" Else .Value = "" End If End With End If stoppit: Application.EnableEvents = True End Sub Gord Dibben MS Excel MVP On Mon, 1 Mar 2010 14:20:02 -0800, painter50 wrote: My cell to like this =(A2+A3) I would like this total to only be active if I click on the cell. In other words can the cell be turned on or off by just clicking on it? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MACROs Are Turned Off | Excel Discussion (Misc queries) | |||
can you format a cell so that formulas will be turned off | Excel Discussion (Misc queries) | |||
How can I edit cell notes while track changes is turned on? | Excel Worksheet Functions | |||
Why am I getting XXX error in text cell with word wrap turned on? | Excel Discussion (Misc queries) | |||
Worksheet has turned | Excel Worksheet Functions |