sample code needed to open plain text file and use as excel97 file 
Author Message
 sample code needed to open plain text file and use as excel97 file

hi all!
   could someone tell me what's the best way to do the following
programmatically?

    i already have a JScript that performs data scrubbing on an excel97
file.

    some of the files that get to me however are plain text files
(assume they're tab delimited).
    i know i can manually import a tab limited text file into excel
(first bringing up the open
    file dialog, then going thru the text import wizard screens) then
start manipulating it.

     how can i do this programmatically so that after the text import, i
can manipulate the result
     as an excel file object?  i don't even have to save the file as a
.XLS FILE, since the end
     product of my data scrubbing manipulations will be another
tab-delimited text file.
     (i'm assuming here that by reusing the JScript file i already have,
i can save time by not
     having to write yet more custom code to do similar data scrubbing
operations on
     non-excel97 input files).

     any help will be greatly appreciated



Tue, 15 Jan 2002 03:00:00 GMT  
 sample code needed to open plain text file and use as excel97 file

Check the docs for Excel.Workbooks.OpenText(blah,blah) method...

Excel 97 Language Reference
http://msdn.microsoft.com/library/officedev/office97/output/F1/D3/S5A...

OpenText method
http://msdn.microsoft.com/library/officedev/office97/output/F1/D3/S5A...

--
Michael Harris


| hi all!
|    could someone tell me what's the best way to do the following
| programmatically?
|
|     i already have a JScript that performs data scrubbing on an excel97
| file.
|
|     some of the files that get to me however are plain text files
| (assume they're tab delimited).
|     i know i can manually import a tab limited text file into excel
| (first bringing up the open
|     file dialog, then going thru the text import wizard screens) then
| start manipulating it.
|
|      how can i do this programmatically so that after the text import, i
| can manipulate the result
|      as an excel file object?  i don't even have to save the file as a
| .XLS FILE, since the end
|      product of my data scrubbing manipulations will be another
| tab-delimited text file.
|      (i'm assuming here that by reusing the JScript file i already have,
| i can save time by not
|      having to write yet more custom code to do similar data scrubbing
| operations on
|      non-excel97 input files).
|
|      any help will be greatly appreciated
|
|



Tue, 15 Jan 2002 03:00:00 GMT  
 sample code needed to open plain text file and use as excel97 file

thanks, michael

Quote:

> Check the docs for Excel.Workbooks.OpenText(blah,blah) method... Excel
> 97 Language
> Referencehttp://msdn.microsoft.com/library/officedev/office97/output/F1/D3/S5A... OpenText
> methodhttp://msdn.microsoft.com/library/officedev/office97/output/F1/D3/S5A...

> --


> |    could someone tell me what's the best way to do the following
> | programmatically?
> |
> |     i already have a JScript that performs data scrubbing on an
> excel97
> | file.
> |
> |     some of the files that get to me however are plain text files
> | (assume they're tab delimited).
> |     i know i can manually import a tab limited text file into excel
> | (first bringing up the open
> |     file dialog, then going thru the text import wizard screens)
> then
> | start manipulating it.
> |
> |      how can i do this programmatically so that after the text
> import, i
> | can manipulate the result
> |      as an excel file object?  i don't even have to save the file as
> a
> | .XLS FILE, since the end
> |      product of my data scrubbing manipulations will be another
> | tab-delimited text file.
> |      (i'm assuming here that by reusing the JScript file i already
> have,
> | i can save time by not
> |      having to write yet more custom code to do similar data
> scrubbing
> | operations on
> |      non-excel97 input files).
> |
> |      any help will be greatly appreciated
> |
> |



Tue, 15 Jan 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. HELP NEEDED: Software to transform plain text files (UNIX) to PDF

2. Sample Code to use File Open dialog box

3. Need help opening a text file

4. converting plain text file?

5. Converting PostScript files to plain ASCII text

6. Open a text file and edit using ReadLine method

7. Open a text file using vbscript

8. Open a text file and edit using ReadLine method

9. Reading full text file (via FSO) when file contains char code 0's

10. Help: Sample Code to read the IIS Use Log File

11. Format plain text using JScript?

12. Need Interpress sample file

 

 
Powered by phpBB® Forum Software