Posts by DarrenSmith1981

    I understand but I didn`t get a response from MrExcel so decided to try somewhere else as it`s fairly urgent.

    Sorry if my crosspost upset people.

    I also meant to alert you I had asked MrExcel forum but forgot to.

    Trying to filter by month


    This filter is to filter the months (In column 6) on a sheet then copy the result over to another sheet but it won`t filter the first sheet?

    Do I need to use a count x to count all filled-in cells in the column or do I need to use the date column (In Column 3) to filter?



    Sorry seems to have stopped working


    This line says Sub or Function not Defined?

    outputRange.Cells(counter) = GetPartInfo(DataSet, cell.Value)


    Sub GetPartInfoForRange(lookupRange As Range, outputRange As Range, DataSet As Object)

    Dim cell As Range

    Dim counter As Long

    Dim ODict As Object


    For Each cell In lookupRange.Cells

    counter = counter + 1

    outputRange.Cells(counter) = GetPartInfo(DataSet, cell.Value)

    Next cell

    End Sub

    You're on the right track but?

    This part of the code below, wsDest.Range("B" & i).Value = GetPartInfo(ODict, wsDest.Range("E" & i).Value) says "method range of object worksheet Failed?"


    Sub GetPartInfoForRange(lookupRange As Range, outputRange As Range, DataSet As Object)

    Dim cell As Range

    Dim counter As Long

    Dim ODict As Object

    Dim wsDest As Worksheet

    Dim i As Integer


    Set wsDest = ThisWorkbook.Worksheets("Job Card Master")


    For Each cell In lookupRange.Cells

    counter = counter + 1

    outputRange.Cells(counter) = GetPartInfo(DataSet, cell.Value)

    Next cell


    wsDest.Range("B" & i).Value = GetPartInfo(ODict, wsDest.Range("E" & i).Value)


    End Sub

    The ranges are pages 1 to 5

    The ranges need the Drawing numbers filled in from the Parts List sheet but not the 4 rows in between the pages.

    These are the ranges not part of this code but shows what I mean




    Select Case cmb.Value


    Case ("Break Lines 1 Page Job Card")

    colorAbove ws.Range("A13:Q" & LastRow)


    Case ("Break Lines 2 Page Job Card")

    colorAbove ws.Range("A13:Q61")

    colorAbove ws.Range("A66:Q" & LastRow)


    Case ("Break Lines 3 Page Job Card")

    colorAbove ws.Range("A13:Q61")

    colorAbove ws.Range("A66:Q122")

    colorAbove ws.Range("A127:Q" & LastRow)


    Case ("Break Lines 4 Page Job Card")

    colorAbove ws.Range("A13:Q61")

    colorAbove ws.Range("A66:Q122")

    colorAbove ws.Range("A127:Q183")

    colorAbove ws.Range("A188:Q" & LastRow)


    Case ("Break Lines 5 Page Job Card")

    colorAbove ws.Range("A13:Q61")

    colorAbove ws.Range("A66:Q122")

    colorAbove ws.Range("A127:Q183")

    colorAbove ws.Range("A188:Q244")

    colorAbove ws.Range("A249:Q" & LastRow)

    End Select