I am trying to look for a column name then select the data below to copy to another sheet HELP!
Sub Trial()
Dim rngFound As Range
ActiveCell.AutoFilterMode = True
Set rngFound = Rows(1).Find("List", Cells(1, Columns.Count), xlValues, xlWhole)
If Not rngFound Is Nothing Then
Columns(rngFound.Column).Copy Destination:=Worksheets("Sheet2").Cells("A2")
Application.CutCopyMode = False
End If
EsleIf rngFound Is Nothing Then
End If
End Sub
Sub Trial()
Dim rngFound As Range
ActiveCell.AutoFilterMode = True
Set rngFound = Rows(1).Find("List", Cells(1, Columns.Count), xlValues, xlWhole)
If Not rngFound Is Nothing Then
Columns(rngFound.Column).Copy Destination:=Worksheets("Sheet2").Cells("A2")
Application.CutCopyMode = False
End If
EsleIf rngFound Is Nothing Then
End If
End Sub