Article ID: 108385
Article Last Modified on 10/11/2006
Type Test_Record
Test As String * 7
End Type
Sub PutTest()
Dim P As Test_Record
Dim filenum As Integer
filenum = FreeFile()
'Open the file you created.
Open "c:\My Documents\Test.txt" For Random As filenum Len = Len(P)
P.Test = "Testing"
'Write a record to the file.
Put #filenum, 2, P
'Close the file.
Close #filenum
End Sub
150700 Excel: How to Work with Random Access Files
put
Additional query words: xl97 XL
Keywords: kbprogramming KB108385