Re: text files

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Donald try this with something in a textbox and a command button.

Private Sub Command1_Click()
Dim FF as Integer
Dim FileName As String
FF = FreeFile
Open "c:\test.txt" For Output As #FF
Print #FF, Text1.Text
Close #FF
End Sub


"Donald" <Donald@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8780E26B-5EBD-4AB5-8375-F79210AC9BE4@xxxxxxxxxxxxxxxx
>I am trying to write to a text file but i do not know how to. I woluld like
> the code for writing to a text file. My Problem is that I can't get the
> program to save to the file.
> --
> Donald


.


Quantcast