ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel-Form to file.txt (https://www.excelbanter.com/excel-programming/332828-excel-form-file-txt.html)

Hennie[_2_]

Excel-Form to file.txt
 
I am using an excel-form to write to an excel-list, but want to write to a
text file. I haven't got MSAccess on my computer. I am using Excel 2000.
Please tell me I can and how.
Thanks
HennieJ

keepITcool

Excel-Form to file.txt
 

Probably best to just use standard VBA
commands:

OPEN
WRITE/PRINT
CLOSE

see VBA help.

Sub WriteToFile()
Open "c:\myfile.txt" For Append Access Write As #1
Print #1, "some text", "some more"
Write #1, "some text", "some more" 'quoted (CSV files)
Close #1
End Sub



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Hennie wrote :

I am using an excel-form to write to an excel-list, but want to write
to a text file. I haven't got MSAccess on my computer. I am using
Excel 2000. Please tell me I can and how.
Thanks
HennieJ



All times are GMT +1. The time now is 02:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com