Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default ascii file import round 2

Thanks to tom and mudrack for their previous help...now
I'm stuck again...I want to import the ascii either into
the active sheet or a new sheet but with all the
delimitation included...here's what I have so far and now
I'm stuck...

Private Sub CommandButton1_Click()
sPath = "\\Filesrv01\PCBard-Raw\Dept.2260\KGF\2260.00946\"
Workbooks.Open sPath & Sheet2.TextBox1.Text,
Origin:=xlWindows, DataType:=xlDelimited,
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False,
Tab:=True, 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))

End Sub

I'm not writing it correctly but I'm not sure how to fix
it...any help would be greatly appreciated!

Thanks!
Mad Scientist
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ascii file import round 2

These changes will open the file with all entries a single entry in
column A



Change Comma:=True to Comma:=False
then

Replace
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))


with

FieldInfo:=Array(1, 1)


---
Message posted from http://www.ExcelForum.com/

Reply
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
How do I convert an Excel file to an ASCII file? Pugh Excel Discussion (Misc queries) 1 November 8th 06 08:57 PM
How do I convert an Excel file to an ASCII file? Pugh New Users to Excel 1 November 8th 06 06:57 PM
using data from ascii file? NTaylor Excel Discussion (Misc queries) 2 December 21st 05 04:46 PM
How do I convert excel file into ASCII text file with alignment? Rosaiah Excel Discussion (Misc queries) 2 June 27th 05 12:17 PM
Import ascii file Mad Scientist Excel Programming 2 January 8th 04 01:38 AM


All times are GMT +1. The time now is 02:00 PM.

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

About Us

"It's about Microsoft Excel"