![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
i have created an excel program and am trying to create an interace which links it to a unix system via a text file.
I know the text to go into the text file... but dont know how to generate a text file from within excel. any ideas? [ This Message was edited by: Qroozn on 2002-04-23 18:35 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
I pulled this from VBA help for the "Write" command. Also have a look for "OpenAsTextStream" and "OpenTextFile". This should get you started. Also, offhand, I know that you may run into problems since UNIX textfiles don't use carriage returns to end a line. (can't remember what though.
This example uses the Write # statement to write raw data to a sequential file. |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
Thnks heaps.
I'll need to muck around with it. I'm sure the bosses will sh!t their pants when they see what their Manufacturing trainee has managed to do. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|