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

How do I import a text file with Workbooks.OpenText so that it import the text file into an already existing worksheet? Everytime I use Workbooks.OpenText it opens a new worksheet from the text file. Help is appreciated in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Importing Text File

You can't. If you have Excel 2000 or later, go into Data=Get External Data
and select import text file.

Turn on the macro recorder to get the code.

the alternative is to use opentext, then copy the data to your existing
file, close the text file without saving changes.

--
Regards,
Tom Ogilvy


Daniel Brow wrote in message
...
How do I import a text file with Workbooks.OpenText so that it import the

text file into an already existing worksheet? Everytime I use
Workbooks.OpenText it opens a new worksheet from the text file. Help is
appreciated in advance.


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
Importing CSV file (saved as Text) into XL as Text -- over 60 colu sbp Excel Discussion (Misc queries) 1 October 14th 06 11:50 PM
Importing text file, only option to edit existing file smokey99 Excel Discussion (Misc queries) 8 April 26th 06 09:08 PM
Importing a text file Bill Excel Discussion (Misc queries) 1 December 9th 05 07:00 PM
Importing Text File Bean123r Excel Discussion (Misc queries) 3 July 20th 05 10:20 PM
Importing text file Jillianno Excel Discussion (Misc queries) 1 February 16th 05 06:47 PM


All times are GMT +1. The time now is 08:51 AM.

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"