Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default linking Excel to txt file

I have a spreadsheet in which I need to import data that
currently resides in a .txt file. I would imagine that I
need to create some sort of link between the .xls and .txt
formats and then create a macro that subsequently pulls in
all pertinent data, but I am at a loss as how to begin
this process.

Any and all insights are welcome.

thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default linking Excel to txt file

One way is to open the text file with various vba commands you can learn
about in Help! Search for "Input", "Line Input", and "Open Statement".
That should get you started.

Otherwise, you can open the text file as a workbook. Use the macro recorder
to get the code for this.

HTH,
Shockley




"Andy" wrote in message
...
I have a spreadsheet in which I need to import data that
currently resides in a .txt file. I would imagine that I
need to create some sort of link between the .xls and .txt
formats and then create a macro that subsequently pulls in
all pertinent data, but I am at a loss as how to begin
this process.

Any and all insights are welcome.

thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default linking Excel to txt file

All I ever did was first under the Tools menu, go to
Macro/Record New Macro. Then under the Data menu, go to
Get External Data/Import Text File. Choose your settings,
when finished go back to the Tools menu/Macros/Stop
Recording. Then right click the data to set up your
refresh options.

rc
-----Original Message-----
I have a spreadsheet in which I need to import data that
currently resides in a .txt file. I would imagine that

I
need to create some sort of link between the .xls

and .txt
formats and then create a macro that subsequently pulls

in
all pertinent data, but I am at a loss as how to begin
this process.

Any and all insights are welcome.

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
very slow!! excel file linking.. Angelo Excel Discussion (Misc queries) 0 February 8th 08 10:01 AM
Linking a pdf file from Excel Lissa Excel Discussion (Misc queries) 3 September 22nd 06 08:48 PM
Linking a worksheet from a different excel file Trever B Excel Discussion (Misc queries) 1 May 11th 06 11:19 AM
linking a file to another linked file in excel buckeye Excel Discussion (Misc queries) 1 November 10th 05 12:53 AM
linking with cells of others excel file Omar Peru Excel Discussion (Misc queries) 0 May 8th 05 08:51 PM


All times are GMT +1. The time now is 10:29 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"