VBA remove filter from code

My vba code
Sub HEADERS_MIN_PACKAGE()  
collects data with a form, filters the data based on value in DETAILS A3, then copies to the Filtered Data sheet.

I need to REMOVE THE FILTER PORTION.
It should only choose the columns and move the data.

Can anyone help?
MWT-TOOL-v10.3.xlsm
Euro5Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
HI,

pls try

Sub HEADERS_MIN_PACKAGE()
     Application.ScreenUpdating = True
    Dim rng As Range
    astrHeaders = Array("Origin Zip", "Recipient Zip")
    Data.Activate
    frmData.Show


    ' Update column headers
    With Sheets("Data")
        .Cells(1, frmData.cboPayType.ListIndex + 1).Value = frmData.lblPayType.Caption
        .Cells(1, frmData.cboRatedWeight.ListIndex + 1).Value = frmData.lblRatedWeight.Caption
        .Cells(1, frmData.cboOriginZip.ListIndex + 1).Value = frmData.lblOriginZip.Caption
        .Cells(1, frmData.cboRecipientZip.ListIndex + 1).Value = frmData.lblRecipientZip.Caption
        .Cells(1, frmData.cboState.ListIndex + 1).Value = frmData.lblState.Caption
        .Cells(1, frmData.cboStreetAddress.ListIndex + 1).Value = frmData.lblStreetAddress.Caption
        .Cells(1, frmData.cboCity.ListIndex + 1).Value = frmData.lblCity.Caption
        .Cells(1, frmData.cboDateShipped.ListIndex + 1).Value = frmData.lblDateShipped.Caption
        .Cells(1, frmData.cboZone.ListIndex + 1).Value = frmData.lblZone.Caption
    End With
    
    'error check
     'If Not DataWeightCheck(, MinimumWeight) Then
        'MsgBox "There was no data meeting the minimum package weight", vbExclamation, "No Data"
        'Exit Sub
    'End If
    
    Sheets("Data").Range("A1").CurrentRegion.Copy Range("Filtered_Data!A1")
    
'trim zips
        With Worksheets("Filtered_Data").Range("A1").CurrentRegion.Rows(1)
        For Each Item In astrHeaders
            Set f = .Find(Item, LookIn:=xlValues)
            If Not f Is Nothing Then
                Set mCol = Range(Cells(2, f.Column), Cells(Rows.Count, f.Column).End(xlUp))
                For Each c In mCol
                    If Len(c.Value) = 9 Then
                    c.Value = Left(c.Value, 5)
                ElseIf Len(c.Value) = 8 Then c.Value = Left(c.Value, 4)
                End If
            Next
        End If
    Next
End With

End Sub

Open in new window

Regards
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Euro5Author Commented:
AWESOME!! Thanks so much!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.