+ Reply to Thread
Results 1 to 14 of 14

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

Hybrid View

  1. #1
    Registered User
    Join Date
    09-04-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    13

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

    Is something wrong with the way I entered it. I only want to search text in A1:A500 then find each cell within that range in A1:A5000 in the other workbook and highlight it Yellow
    Sub DixieDiver()
    Dim x As String
    Dim i As Long
    Dim y As Range
    For i = 2 To Range("A" & Rows.Count).End(3).Row
        x = Range("A" & i).Value
            Set y = Workbooks("Missing PI Tags 20141021b.xlsx").Sheets("Jacobs").Cells.Find(x, LookIn:=xlValues, lookat:=xlWhole)
                If Not y Is Nothing Then
                    Workbooks("DB (Old App).xlsx").Sheets("DB (Old App)").Cells(y.Row, y.Column).Interior.ColorIndex = 6
                End If
            Set y = Nothing
    Next i
    
    End Sub
    Last edited by DixieDiver; 10-22-2014 at 03:28 PM.

+ Reply to Thread

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