|
-
Sep 13th, 2005, 05:04 AM
#1
Thread Starter
New Member
How to program to copy a text file into a table in Excel ?
-
Sep 13th, 2005, 05:10 AM
#2
Re: How to program to copy a text file into a table in Excel ?
Pseudo code:
get an instance of Excel, if it fails create an instance
open a workbook or create one
set an instance to the sheet you want to write on
open the text file for reading
write your text to the cell(s) you want.
tip:
- search for getobject/createobject and Excel to accomplish the first line of pseudo code 
- search for freefile to see examples of opening a textfile (in a good way)
 why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
for every question you ask provide an answer on another thread.
-
Sep 13th, 2005, 05:31 AM
#3
Re: How to program to copy a text file into a table in Excel ?
-
Sep 13th, 2005, 06:46 AM
#4
Lively Member
Re: How to program to copy a text file into a table in Excel ?
If you are just wanting to Import the text file into the worksheet, you can just record a macro to get the basic syntax used, then clean the code up after it has done most of the work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|