August 24th, 2006, 10:03 PM
How Do I Make A Text Box Send Text to a text file?
I need to know what command i would use to send text entered in a text box to a text file using a command buttton.
Your advice would again be very appreciated!
August 24th, 2006, 10:14 PM
off the top of my head
You can obviously improve it but it works in any VB
Private Sub Command1_Click()
Dim FileID As Integer
Dim strFileName As String
strFileName = InputBox("Enter the full path of the file to save to e.g. c:\helloworld.txt")
If Len(strFileName) Then
FileID = FreeFile
Open strFileName For Output As #FileID
Print #FileID, Text1.Text
“Today you are You, that is truer than true. There is no one alive who is Youer than You.” - Dr. Seuss