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

Hi all,
Iam new to excel programming. What iam trying to do is to read
a .txt file in CSV format from a specific directory and import that to
excel after grep(Unix System() command) for certain keyword in the
..txt file.
Do anyone has done similar thing can give a clue?

Regards
Bubunia
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default How to import Text file to Excel

If you've already gotten your .txt file, then record a macro when you import it
manually the first time.


Sobhan wrote:

Hi all,
Iam new to excel programming. What iam trying to do is to read
a .txt file in CSV format from a specific directory and import that to
excel after grep(Unix System() command) for certain keyword in the
.txt file.
Do anyone has done similar thing can give a clue?

Regards
Bubunia


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to import Text file to Excel

Dave Iam not clear what you are trying to explain. Would you mind
elaborating a little??
Iam using VC++.

Dave Peterson wrote in message ...
If you've already gotten your .txt file, then record a macro when you import it
manually the first time.


Sobhan wrote:

Hi all,
Iam new to excel programming. What iam trying to do is to read
a .txt file in CSV format from a specific directory and import that to
excel after grep(Unix System() command) for certain keyword in the
.txt file.
Do anyone has done similar thing can give a clue?

Regards
Bubunia

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to import Text file to Excel

Dave is saying you can see the vba code to import a csv file by recording a
macro while you do it manually (in Excel).

If you are using C++, this still might be useful in seeing what command to
use and the syntax/arguments for that command.

Other than that, you might want to build a safearray of your data and write
that to your worksheet. You might search the knowledge base on VC++,
Safearray and Excel.

http://support.microsoft.com
choose advanced search, product Excel for windows.

--
Regards,
Tom Ogivy

"Sobhan" wrote in message
om...
Dave Iam not clear what you are trying to explain. Would you mind
elaborating a little??
Iam using VC++.

Dave Peterson wrote in message

...
If you've already gotten your .txt file, then record a macro when you

import it
manually the first time.


Sobhan wrote:

Hi all,
Iam new to excel programming. What iam trying to do is to read
a .txt file in CSV format from a specific directory and import that to
excel after grep(Unix System() command) for certain keyword in the
.txt file.
Do anyone has done similar thing can give a clue?

Regards
Bubunia



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
Can I import text file of cash flow to excel file then use formula Bumpa Excel Discussion (Misc queries) 2 May 28th 10 04:22 PM
how to import a text file in excel 2010 BBailey Excel Discussion (Misc queries) 1 July 21st 09 05:38 PM
how to import more than 1 text file into the same Excel worksheet. SinnetBS Excel Discussion (Misc queries) 1 June 14th 06 03:14 AM
How to import more than one text file into Excel ? tina SPEILBERG Excel Programming 1 July 13th 03 04:45 PM


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