ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   OpenText method (https://www.excelbanter.com/excel-programming/393925-opentext-method.html)

equiangular

OpenText method
 
Hello,

I want to use OpenText to parse a tab delimited file, delete some rows
and then save as a new xls. However, OpenText does not return a
reference to the opened text file. Is there any better way to get the
reference apart from using ActiveWorkbook?

Thanks.

Dave Peterson

OpenText method
 
That's what I'd do.

Equiangular wrote:

Hello,

I want to use OpenText to parse a tab delimited file, delete some rows
and then save as a new xls. However, OpenText does not return a
reference to the opened text file. Is there any better way to get the
reference apart from using ActiveWorkbook?

Thanks.


--

Dave Peterson

equiangular

OpenText method
 
I wonder if there's any problem if the user is editing other opened
workbooks and the text file to be parsed is quite large.

Dave Peterson wrote:
That's what I'd do.

Equiangular wrote:
Hello,

I want to use OpenText to parse a tab delimited file, delete some rows
and then save as a new xls. However, OpenText does not return a
reference to the opened text file. Is there any better way to get the
reference apart from using ActiveWorkbook?

Thanks.



Dave Peterson

OpenText method
 
The text file will be the activeworkbook right after you open it.

I've never had any trouble doing this kind of thing.

Equiangular wrote:

I wonder if there's any problem if the user is editing other opened
workbooks and the text file to be parsed is quite large.

Dave Peterson wrote:
That's what I'd do.

Equiangular wrote:
Hello,

I want to use OpenText to parse a tab delimited file, delete some rows
and then save as a new xls. However, OpenText does not return a
reference to the opened text file. Is there any better way to get the
reference apart from using ActiveWorkbook?

Thanks.



--

Dave Peterson

equiangular

OpenText method
 
OK

Dave Peterson wrote:
The text file will be the activeworkbook right after you open it.

I've never had any trouble doing this kind of thing.

Equiangular wrote:
I wonder if there's any problem if the user is editing other opened
workbooks and the text file to be parsed is quite large.

Dave Peterson wrote:
That's what I'd do.

Equiangular wrote:
Hello,

I want to use OpenText to parse a tab delimited file, delete some rows
and then save as a new xls. However, OpenText does not return a
reference to the opened text file. Is there any better way to get the
reference apart from using ActiveWorkbook?

Thanks.




All times are GMT +1. The time now is 01:32 PM.

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