Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default 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

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
How do I embed a .lnk file in an Excel form? SIMPSBA Excel Discussion (Misc queries) 1 May 3rd 09 03:36 PM
How do you populate an HTML form with EXCEL or DB file? Is it possible? [email protected] Excel Discussion (Misc queries) 0 January 20th 08 02:38 PM
File in 2007 form - need to get back to 2003 form... RHM Excel Discussion (Misc queries) 2 May 7th 07 05:38 AM
How to copy from VBA form in to excel file Rudy Excel Worksheet Functions 0 November 24th 06 03:27 AM
Excel Form File Errors hartleydc Excel Discussion (Misc queries) 0 September 29th 05 11:20 PM


All times are GMT +1. The time now is 09:15 AM.

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"