|
-
Aug 27th, 2003, 09:21 AM
#20
Addicted Member
Sub findthefour()
Dim i As Integer, j As Integer, srange As String
Dim sCell As Range
'i = 0
For Each sCell In Selection
If Left(Right(sCell.Value, 4), 1) = "4" Then
sCell.Interior.ColorIndex = 6
sCell.Offset(0, -1).Value = 1
'arr(i) = sCell.Address
'i = i + 1
Else
sCell.Offset(0, -1).Value = 0
End If
Next
End Sub
this will do what i said
just insert a col before a and highlight the number col
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
|
Click Here to Expand Forum to Full Width
|