hi sir,
can you please give me the step by step proces of below macro command buttom.
best regards
Sub ColorChange()
Dim OriginalColor As Integer
'You need to make a note of what the name
'of your shape/button is
ActiveSheet.Shapes("Star1").Select
'Store original color
OriginalColor = Selection.Interior.ColorIndex
'Change color to something else
Selection.Interior.ColorIndex = 5
'Do stuff here
ActiveSheet.Shapes("Star1").Select
'Change color back
Selection.Interior.ColorIndex = OriginalColor
End Sub
can you please give me the step by step proces of below macro command buttom.
best regards
Sub ColorChange()
Dim OriginalColor As Integer
'You need to make a note of what the name
'of your shape/button is
ActiveSheet.Shapes("Star1").Select
'Store original color
OriginalColor = Selection.Interior.ColorIndex
'Change color to something else
Selection.Interior.ColorIndex = 5
'Do stuff here
ActiveSheet.Shapes("Star1").Select
'Change color back
Selection.Interior.ColorIndex = OriginalColor
End Sub