How to Copy a group of cells from an offset relevant to a Search String

  • So I have everything but the last step working. I need to search for a phrase in col AO based off a cell on another sheet (Main A2). Then if that cell has that phrase, then I need to copy the cell next to it and the next 13 in that row (so It would be AP-BB cols, row is dynamic & based of the search string. I get the first cell to be selected just fine, but for the life of me I cannot get the macro to highlight all 13 cells (as you can tell, I am a bit of a novice when it comes to VBA, I am self/google/forum taught).


    Dim SrchRng As Range, cel As Range
    Set SrchRng = Range("AO:AO")
    For Each cel In SrchRng
    If cel.Value = Worksheets("Main").Range("A2") Then
    cel.Offset(0, 1).Select
    Range(Cells(0, 0), Cells(0, 13)).Copy


    Thanks!

  • Re: How to Copy a group of cells from an offset relevant to a Search String


    Use ReSize:

    Matt Mickle
    Using Excel 2010,2013 & 2016

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!