Hi, I'd like to make a macro that imports all files in a directory that begin with "po", and then append them to each other in Excel. Would anyone know the code to do this? I'm having a great deal of trouble figuring it out. Here's my macro generated code for importing one of my files:
thanks for any help!
Code:
Workbooks.OpenText Filename:="C:\InvestVFP\RBCData\RBCArchive\po042810.txt", _
Origin:=xlWindows, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _
xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, Semicolon:=False _
, Comma:=True, Space:=False, Other:=False, FieldInfo:=Array(Array(1, 1), _
Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1), Array(7, 1), Array(8, 1), _
Array(9, 1), Array(10, 1), Array(11, 1), Array(12, 1), Array(13, 1), Array(14, 1), Array(15 _
, 1), Array(16, 1), Array(17, 1), Array(18, 1), Array(19, 1), Array(20, 1), Array(21, 1), _
Array(22, 1), Array(23, 1))
thanks for any help!