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

Hello

I had the below code running on Access 97 and Excel 97. When I upgraded
to Access 2000 and Excel 2000 it stopped working. Giving me a message
saying: "OpenText method of Workbooks class failed".

Is there a way to correct this issue? or should I upgrade only to
Access 2000 and keep Excel 97.

Thank you all
Elie Constantine


Private Sub ConvertUsingExcel(FromFile As String, ToFile As String,
Optional Origin As Integer = 2)
Dim objExcel As Object
Dim i As Integer
Dim s As String

Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.workbooks.opentext FileName:=FromFile, Origin:=Origin,
StartRow:=1 _
, DataType:=1, TextQualifier:=1, ConsecutiveDelimiter:=False, _
Tab:=False, Semicolon:=False, Comma:=True _
, Space:=False, Other:=False

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 JH Excel Programming 2 August 24th 05 11:42 PM
opentext method of excel workbook object Kislay Excel Programming 2 May 12th 05 03:56 AM
OpenText Method failure Bryan Dickerson Excel Programming 9 April 13th 05 09:29 PM
How to use Opentext method with xlFixedWidth? Together[_8_] Excel Programming 2 March 3rd 04 03:27 PM
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 12:00 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"