ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can we Pass String to FieldInfo Array to OpenText Method. (https://www.excelbanter.com/excel-programming/287179-can-we-pass-string-fieldinfo-array-opentext-method.html)

Niraj Kumar Singh

Can we Pass String to FieldInfo Array to OpenText Method.
 
Hi ,
Let me introduce myself first .Myself is niraj working
as developer in Singpore. Pls help me out to resolve this
issue.
I export data from text file to excel Using
Workbook.OpenText method. Find below Syntax .

Workbooks.OpenText FileName:="C:\ips\ips.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, 2))
..

Can i Pass string parameter to FieldInfo . FieldInfo is
one of the optional argument of OpenText method. I would
like to do this






All times are GMT +1. The time now is 11:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com