OpenText suddenly stopped working when I upgraded to Excel 2003

Joined
Mar 22, 2006
Messages
1
Reaction score
0
I am trying to import a separate excel sheet into my workbook using the opentext method. This macro worked until I upgraded to Excel 2003. Any help would be appreciated.

Here is the code...

varFileNm = Application.GetOpenFilename("Excel File (*.xls), *.xls", Title:="Select Excel download file")


Workbooks.OpenText Filename:=varFileNm, Origin:=xlWindows, _
StartRow:=1, DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, Comma:=False _
, 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))

Thank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top