Ramneek Sharma - VB From Technical View
MCTS, MCPD, MCT, IBM SQA,Green Belt Six Sigma.
Thursday, 15 October 2015
Macro to check if cell contains specific value and color entire row as red
Dim cell1 As Range
Dim rng1 As Range
Set rng1 = ActiveSheet.UsedRange
For Each cell1 In rng1
On Error Resume Next
If cell1.Value Like "*.pdf*"
then
cell1.EntireRow.Interior.Color = vbRed
End If
Next cell1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment