noexcelguru
New Member
- Joined
- Jan 18, 2011
- Messages
- 40
The idea is to change the Interior.Color of a cell by using one CommandButton
I've tried different variants of MyPlage and Dim in fustration because i can't find any related works here or with google
And what's the difference between Cycle and Loop?
The closest I got;
Private Sub CommandButton17_Click()
Dim i As Integer
Case xlNone
Cell.Interior.ColorIndex = 3
Next i
Cell.Interior.ColorIndex = 6
Next i
Cell.Interior.ColorIndex = 4
Next i
Cell.Interior.ColorIndex = xlNone
End Selected
End Sub
I've tried different variants of MyPlage and Dim in fustration because i can't find any related works here or with google
And what's the difference between Cycle and Loop?
The closest I got;
Private Sub CommandButton17_Click()
Dim i As Integer
Case xlNone
Cell.Interior.ColorIndex = 3
Next i
Cell.Interior.ColorIndex = 6
Next i
Cell.Interior.ColorIndex = 4
Next i
Cell.Interior.ColorIndex = xlNone
End Selected
End Sub