-
Get value of FillColour button
I use this simple code to toggle cell fill colour
[VBA]Sub Yellow()
If Selection.Interior.ColorIndex = 6 Then
Selection.Interior.ColorIndex = xlNone
Else
Selection.Interior.ColorIndex = 6
End If
End Sub[/VBA]
How do I change it to use the last colour set by the FillColour button? I see it "remembers" the last colour used.
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules