Related:
- A1= true, a2= false, a3 = true what is the result of =not(a1,a2,a3)
- Lava a1 reset code - Phones, PDA & GPS Forum
- Lava a3 reset code - System software Forum
- Check back here for the result. - Facebook Forum
- LEPHONE A3 Probem - Software Forum
- Sims 3 testingcheatsenabled true not working ✓ - The Sims Forum
2 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Oct 1, 2011 at 05:51 AM
Oct 1, 2011 at 05:51 AM
A2 has formula
=A3
in A3 you enter the formula either
=1=1
or =1=2
you wan A1 color to change
try this
right click sheet tab and click view code there you copy this event code
now you enter either of the two formulas in A3and see what happens in A1
=A3
in A3 you enter the formula either
=1=1
or =1=2
you wan A1 color to change
try this
right click sheet tab and click view code there you copy this event code
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address <> "$A$3" Then Exit Sub Application.EditDirectlyInCell = False If Target = True Then Range("A1").Interior.ColorIndex = 3 Else Range("A1").Interior.ColorIndex = 4 End If Application.EnableAnimations = True End Sub
now you enter either of the two formulas in A3and see what happens in A1
Thanks, venkat1926
Your macro does work in my simplified test workbook.
I'm thinking the animation line causes excel to continuously scan the sheet looking for changes. Anyway, pretty neat.
I have 20 cells that may require this and they are not contiguous. Some folks are afraid to use sheets with macros created by others and therefore I try to avoid including them. But, if I need to, I will work this into my production workbook.
Update to my original problem:
I found that my colors do change at A1 if, after a change in value at A3, I change the height or width of any row or column to greater or less by clicking between rows while scrolling either up ,down. Something about that triggers the color change. It seems to have to do with the fact that the primary formula that creates the value displayed (in the cell which also contains the conditional format) is derived from a different worksheet.
Found this statement:
" Note When you create a conditional format, you can only reference other cells on the same worksheet; you cannot reference cells on other worksheets in the same workbook, or use external references to another workbook."
But I thought that would only apply to the conditional format rule/fromula, not the display formula. And it's not a problem in my simple test workbook - only my production workbook.
Tim
Your macro does work in my simplified test workbook.
I'm thinking the animation line causes excel to continuously scan the sheet looking for changes. Anyway, pretty neat.
I have 20 cells that may require this and they are not contiguous. Some folks are afraid to use sheets with macros created by others and therefore I try to avoid including them. But, if I need to, I will work this into my production workbook.
Update to my original problem:
I found that my colors do change at A1 if, after a change in value at A3, I change the height or width of any row or column to greater or less by clicking between rows while scrolling either up ,down. Something about that triggers the color change. It seems to have to do with the fact that the primary formula that creates the value displayed (in the cell which also contains the conditional format) is derived from a different worksheet.
Found this statement:
" Note When you create a conditional format, you can only reference other cells on the same worksheet; you cannot reference cells on other worksheets in the same workbook, or use external references to another workbook."
But I thought that would only apply to the conditional format rule/fromula, not the display formula. And it's not a problem in my simple test workbook - only my production workbook.
Tim
Also found that my conditiona format colors do update when I change view to different worksheet. This fact makes the problem as it applies to my application a non issue. I enter the affected values on two other worksheets - 2 and 3 and, when I click on sheet 1, they are updated so my users will never know the problem exists.
ALSO NOTE !!!!!! Running the macro posted above will leave your EXCEL application in a state that you can no longer directly edit data in cells. If you don't know how to reset that option, don't run the macro.
ALSO NOTE !!!!!! Running the macro posted above will leave your EXCEL application in a state that you can no longer directly edit data in cells. If you don't know how to reset that option, don't run the macro.