also, is it possible to specify the text to be imported within the
actual vba module? instead of the data coming from a form's field
Ofer Cohen's Original Example:
Open "C:\FileName.txt" For OutPut As #1
Print #1, Me.[TextBoxName]
Close #1
You can also export directly from VBA code instead of a control on a
form.
Dim strYourData As String
strYourData = "Whatever You Want"
Open "C:\FileName.txt" For OutPut As #1
Print #1, strYourData
Close #1
Sincerely,
Chris O.