DEnnis,
I was thinkling of more basic than FSO. This is a sample of that
Dim myVar, FileNumber
FileNumber = FreeFile ' Get unused file number.
Open "InputLog.txt" For Output As #FileNumber ' Create file name.
myVar = GetAndLogInput("Supply a date", "Log input test", FileNumber)
myVar = GetAndLogInput("Supply a number", "Log input test", FileNumber)
Close #FileNumber ' Close file.
Function GetAndLogInput(prompt As String, title As String, FileNumber)
Dim ans
Dim inTime As String
ans = InputBox(prompt, title)
inTime = Format(Now, "dd mmm yyyy hh:mm:ss") & ": "
Write #FileNumber, inTime & prompt
Write #FileNumber, inTime & ans
Write #FileNumber, ""
GetAndLogInput = ans
End Function
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)