Results 1 to 15 of 15

Searches all sheets in wb for exact string in column, copy/paste certain data from row

Threaded View

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    90

    Searches all sheets in wb for exact string in column, copy/paste certain data from row

    I have a macro (much thanks and kudos to arlu) that will search through a workbook and pull data from a certain column in each sheet. What I need now is to be able to pull other parts of the row that data is in onto that same sheet.
    Macro is:
    Sub cons_data()
    Dim i As Long, lrow As Long
    
    Application.ScreenUpdating = False
    
    For i = 1 To Worksheets.Count
        With Worksheets(i)
            If .Name <> "Recommendations" Then
                lrow = .Range("L" & .Rows.Count).End(xlUp).Row
                If lrow > 9 Then .Range("L10:L" & lrow).Copy Worksheets("Recommendations").Range("B" & Rows.Count).End(xlUp).Offset(1, 0)
            End If
        End With
    Next i
    
    With Worksheets("Recommendations")
        lrow = .Range("B" & .Rows.Count).End(xlUp).Row
        .Range("B5:B" & lrow).RemoveDuplicates Columns:=1, Header:=xlYes
    End With
    
    
    MsgBox "Done"
    
    Application.ScreenUpdating = True
    
    End Sub
    I need to pull the person responsible, the Risk ranking L&S which are the highest for Personnel, and the highest for Environmental, and then the Item no. which corresponds to those rankings.

    I have attached a testbook which gives an example.

    Thank you very much to anyone who can assist me!
    Attached Files Attached Files
    Last edited by bcas77; 07-11-2013 at 01:36 PM.

Thread Information

Users Browsing this Thread

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

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