Save to texfile?

I'm looking for some quick, clean code to save to a text file.  All I'm looking to do is copy the contents of four text boxes and maybe a line or two I add to a text file on the dekstop.
Who is Participating?
caraf_gConnect With a Mentor Commented:
Dim intFile As Integer
intFile = FreeFile
Open "X:\Y\Z\YourFile.txt" for Output As #intFile

Print #intFile, TextBox1.Text
Print #intFile, TextBox2.Text

Close #intFile
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.