LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default importing prn file

I recorded the importation of a prn file and the VB code
that came out is below. My question is, does anybody know
where the code specifies what data type each column is
(text, number, date, etc.) any help would be
appreciated. thanks.

Workbooks.OpenText FileName:= _
fileToOpen, Origin:=xlWindows, _
StartRow:=1, DataType:=xlDelimited,
TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, Tab:=False,
Semicolon:=False, Comma:=True _
, Space:=False, Other:=False, FieldInfo:=Array
(Array(1, 2), Array(2, 1), _
Array(3, 1), Array(4, 2), Array(5, 2), 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))
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
importing from a *.txt file Randy Bratton Excel Discussion (Misc queries) 4 October 15th 08 01:10 PM
Importing a file dan Excel Worksheet Functions 5 August 8th 06 07:20 PM
Importing a csv file Excel user Excel Discussion (Misc queries) 1 June 21st 06 09:19 PM
Importing text file, only option to edit existing file smokey99 Excel Discussion (Misc queries) 8 April 26th 06 09:08 PM
Importing .txt file naulerich Excel Worksheet Functions 6 April 4th 06 02:03 PM


All times are GMT +1. The time now is 09:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"