Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Adelisa Fischer   on Mar 03 In MS Office Category.

  
Question Answered By: Hasad Yilmaz   on Mar 03

Try this change (added line beginning "ActiveSheet")

Private Sub Worksheet_Activate()
Dim c, x As Range
ActiveSheet.UsedRange.Interior.ColorIndex = xlColorIndexNone
For Each c In ActiveSheet.UsedRange
If Not c = "" Then
Set x = Worksheets(1).UsedRange.Find(c.Value)
If Not x Is Nothing Then
c.Interior.Color = RGB(0, 255, 255)
End If
End If
Next c
End Sub

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on 2 sheets of the same data Or get search suggestion and latest updates.


Tagged: