Results 1 to 8 of 8

the code is finding repeated values but i need to search values from E column to D

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-01-2014
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    379

    the code is finding repeated values but i need to search values from E column to D

    i have one column(SEARH WORD) Where i has some words
    like
    CABLE
    CONNECTOR
    CLIP
    BELT....ETC

    I NEED TO FIND THIS WORDS IN OTHER COLUMN (XX) AND MARK COLOR(YELLOOW)



    Sub SER()
    '
        
       Fnd = InputBox("Enter text!", "SERACH_TEXT")
       ' Fnd = "#MULTIVALUE"
        Cells.Find(What:=(Fnd), After:=ActiveCell, LookIn:=xlFormulas, _
        LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
        MatchCase:=False).Activate
         'Rows("51:51").Select
        With Selection.Interior
            .ColorIndex = 6
            .Pattern = xlSolid
            .PatternColorIndex = xlAutomatic
            
        End With
    'End Sub
    
    'Cells.FormatConditions.Delete
    End Sub
    
    
    Public Sub SER2()
    Dim rngArea As Range
    Dim Fnd As Variant
    
    Fnd = InputBox("Enter text!", "SEARCH_TEXT")
    For Each rngArea In Selection
    'Prije bilo For Each rngArea In Selection.Areas
        With rngArea
        If InStr(UCase(rngArea.Value), UCase(Fnd)) > 0 Then
            With rngArea.Interior
            .ColorIndex = 6
            .Pattern = xlSolid
            .PatternColorIndex = xlAutomatic
            End With
        End If
        End With
    Next rngArea
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 10-11-2014, 04:52 AM
  2. [SOLVED] create list of unique values from a column with repeated values?
    By Chad Schaben in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. [SOLVED] create list of unique values from a column with repeated values?
    By Anne Troy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  4. create list of unique values from a column with repeated values?
    By Chad Schaben in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. create list of unique values from a column with repeated values?
    By Chad Schaben in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

Tags for this Thread

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