Sub Macro1()
For x = 1 To 256
findd = Cells(2, x).Value
If findd = "*.TXT" Then
Columns(x).Copy
Columns(1).Select
ActiveSheet.Paste
Else
End If
Next
End Sub
Sub Macro1()
For x = 1 To 256
findd = Cells(2, x).Value
findd = Right(findd, 4)
findd = UCase(findd)
If findd = ".TXT" Then
Columns(x).Copy
Columns(1).Select
ActiveSheet.Paste
Else
End If
Next
End Sub