Dear All
I am using the code below to write "xxxx" to a text file (by way of a test)
Sub test()
Dim full As String
full = "xxxx"
' Declare a FileSystemObject.
Dim fso As New FileSystemObject
' Declare a TextStream.
Dim stream As TextStream
' Create a TextStream.
Set stream = fso.CreateTextFile("c:\string.log", True)
'write to file
stream.Write full
'close steam
stream.Close
End Sub
I have the 'Microsoft Scripting Runtime' reference ticked
Excel version - Excel 20017
Get error - "Automation error Library not registered"
Any ideas !!! Thanks in advance.. Simon
I am using the code below to write "xxxx" to a text file (by way of a test)
Sub test()
Dim full As String
full = "xxxx"
' Declare a FileSystemObject.
Dim fso As New FileSystemObject
' Declare a TextStream.
Dim stream As TextStream
' Create a TextStream.
Set stream = fso.CreateTextFile("c:\string.log", True)
'write to file
stream.Write full
'close steam
stream.Close
End Sub
I have the 'Microsoft Scripting Runtime' reference ticked
Excel version - Excel 20017
Get error - "Automation error Library not registered"
Any ideas !!! Thanks in advance.. Simon