Jump to content

working on a workspace ; how to change color of value in a spreadsheet by condition


Recommended Posts

  • 2 months later...

Hi,

You can write an SVB function that does something similar to this. This code states that if the value of cell 6 row 5 is greater than cell 7 row 5 then set cell 8 row 5 to an RGB value.

Sub Main

Dim S1 As Spreadsheet

Set S1 = ActiveDataSet

If S1.Range("C6R5:C6R5").Value > S1.Range("C7R5:C7R5").Value Then

S1.Range("C8R5:C8R5").StaFont.Background = RGB(192,255,255)

End If

End With

End Sub

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...