Results 1 to 14 of 14

VB Script search within a column in one Wb and find in another WB and Highlight yellow

Threaded View

  1. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VB Script search within a column in one Wb and find in another WB and Highlight yellow

    Per Forum Rule No. 3. You must use code tags when posting.

    http://www.excelforum.com/forum-rule...rum-rules.html

    Sub DixieDiver()
    Dim x As String
    Dim i As Long
    Dim y As Range
    Workbooks("DB (Old App).xlsx").Sheets("DB (Old App)").Activate
    For i = 1 To 500
        x = Range("A" & i).Value
            Set y = Workbooks("Missing PI Tags 20141021b.xlsx").Sheets("Jacobs").Columns(1).Find(x, LookIn:=xlValues, lookat:=xlWhole)
                If Not y Is Nothing Then
                    Workbooks("Missing PI Tags 20141021b.xlsx").Sheets("Jacobs").Cells(y.Row, y.Column).Interior.ColorIndex = 6
                End If
            Set y = Nothing
    Next i
    
    End Sub
    Last edited by JOHN H. DAVIS; 10-22-2014 at 03:30 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Find number and highlight in yellow
    By Jerry HKA in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-10-2014, 04:17 AM
  2. [SOLVED] find last empty cell and highlight yellow
    By James__S in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2014, 03:46 PM
  3. [SOLVED] Highlight Yellow Active Row, PROBLEM: row selected before closing stays yellow
    By NumberCruncher311 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2013, 07:01 PM
  4. Highlight blank cells in yellow.
    By n_lindsey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2013, 02:17 AM
  5. Macro To find match Value from other clomn and highlight in yellow
    By tariqnaz2005 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2012, 09:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1