azmirnordin
Registered User.
- Local time
- Today, 16:39
- Joined
- Jan 3, 2011
- Messages
- 57
Hi Guys.. 
I wanna change the particular cell backcolor colour for each record that I selected. As an example if the column name CarNo I put the OnClick event like below
Private Sub CarNo_Click()
ClrRed as Long
ClrRed = RGB(255,0,0)
CarNo.BackColor = ClrRed
End Sub
This works. But how do I maintain the color Red in that particular cell ? The color back to default as I click the next or other cell.
The other thing I wanna do is If on 1st click the cell goes Red, then when I click the same cell again, its color back to default. Is there any way that I can keep the previous and new colour number, let say 0 for default and 1 for red in table for later use?
In Summary
**********
1st Click = cell color turn red
2nd Click = cell color change from red to default
AnyIdea is appreciate..
Cheers
I wanna change the particular cell backcolor colour for each record that I selected. As an example if the column name CarNo I put the OnClick event like below
Private Sub CarNo_Click()
ClrRed as Long
ClrRed = RGB(255,0,0)
CarNo.BackColor = ClrRed
End Sub
This works. But how do I maintain the color Red in that particular cell ? The color back to default as I click the next or other cell.
The other thing I wanna do is If on 1st click the cell goes Red, then when I click the same cell again, its color back to default. Is there any way that I can keep the previous and new colour number, let say 0 for default and 1 for red in table for later use?
In Summary
**********
1st Click = cell color turn red
2nd Click = cell color change from red to default
AnyIdea is appreciate..
Cheers