Ryanelmdale
New Member
- Joined
- Jun 10, 2016
- Messages
- 9
We have a shared spreadsheet setup between two of us. We are using a VBA and a colour formula. (these will be stated at the bottom)
Basically the formula looks at a specific column and looks for a specific colour, it then counts up that colour and displays it within the specified cell.
While sharing this file if the other user adds that lime green in that column and then saves the file and the original user looks at that cell, the colour is like a dark greeny brown. This is then not picked up on the formula as it is a different colour. We would like it to stay the same colour. Please note this isn't a border it is the whole cell.
If we unshare the file it goes back to the normal colour it should be.
The track changes on/off doesn't seem to help.
Any ideas?
VBA:
Function CountCcolor(range_data As range, criteria As range) As Long
Dim datax As range
Dim xcolor As Long
xcolor = criteria.Interior.ColorIndex
For Each datax In range_data
If datax.Interior.ColorIndex = xcolor Then
CountCcolor = CountCcolor + 1
End If
Next datax
End Function
Formula:
=CountCcolor(J:J, N4)
Basically the formula looks at a specific column and looks for a specific colour, it then counts up that colour and displays it within the specified cell.
While sharing this file if the other user adds that lime green in that column and then saves the file and the original user looks at that cell, the colour is like a dark greeny brown. This is then not picked up on the formula as it is a different colour. We would like it to stay the same colour. Please note this isn't a border it is the whole cell.
If we unshare the file it goes back to the normal colour it should be.
The track changes on/off doesn't seem to help.
Any ideas?
VBA:
Function CountCcolor(range_data As range, criteria As range) As Long
Dim datax As range
Dim xcolor As Long
xcolor = criteria.Interior.ColorIndex
For Each datax In range_data
If datax.Interior.ColorIndex = xcolor Then
CountCcolor = CountCcolor + 1
End If
Next datax
End Function
Formula:
=CountCcolor(J:J, N4)