Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default opentext method of excel workbook object

Thanks Tom,

It works fine now.

Kislay

"Tom Ogilvy" wrote:

Since you appear to be using late binding,
Replace the constants with their numeric equivalents:

? xldelimited
1
? xldoublequote
1


--
Regards,
Tom Ogilvy

"Kislay" wrote in message
...
I am using the following code in word macro and it gives error that

opentext
method failed.

Set MinMax = CreateObject("Excel.Application")
MinMax.workbooks.Opentext FileName:="d:\abc.txt", _
Origin:=xlMSDOS, StartRow:=17, DataType:=xlDelimited,
TextQualifier:= _
xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=True,
Semicolon:=False, _
Comma:=False, Space:=True, Other:=False, FieldInfo:=Array(Array(1,
1), _
Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1))

Any help is appreciated.

Thanks.




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
OpenText Method failure Bryan Dickerson Excel Programming 9 April 13th 05 09:29 PM
OpenText Method of Workbook Object Question John Excel Programming 2 October 20th 04 07:39 PM
How to use Opentext method with xlFixedWidth? Together[_8_] Excel Programming 2 March 3rd 04 03:27 PM
method vbproject of object workbook fail Chrispy[_2_] Excel Programming 4 January 9th 04 06:56 AM
Pass string as Parameter in OpenText method No Name Excel Programming 0 January 8th 04 06:22 AM


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

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"