Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Coverting worksheet macro to regular macro
I'm having toruble converting this to a regular macro - how would I d
this? Private Sub Worksheet_Calculate() Dim myColorIndex As Long Dim myCell As Range Dim myRng As Range Set myRng = Me.Range("o5:Iv2232") For Each myCell In myRng.Cells Select Case LCase(myCell.Value) Case Is = "b": myColorIndex = 3 Case Is = "v": myColorIndex = 5 Case Else: myColorIndex = xlNone End Select myCell.Interior.ColorIndex = myColorIndex Next myCell End Su -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I convert a Pivot Table to a regular Excel worksheet? | Excel Discussion (Misc queries) | |||
Excel Macro Issue Trying to autorun Macro Upon Opening Worksheet | Excel Programming | |||
How to end macro on inital active worksheet containing macro button that was clicked | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming | |||
How? Macro to copy range to new worksheet, name new worksheet, loop | Excel Programming |