Hi I have a macro that I have been using, (written with help from Mr. Excel).
I have used it on the first computer, copied it to a second and used it, and now I am trying to use it on a new (older) computer. When I try to run it on this last computer I get the error message: "Compile error: user-defined type not defined" Can anyone help with why this is happening only on this one computer? Thanks for any suggestions.
Here is the beginning of the code with the line in question in red.:
Sub XL_to_text()
Dim i As Long, j As Long, k As Long, l As Long, lastrow As Long
Dim oFS As FileSystemObject
Dim oTS As TextStream
Dim FilesName As String
I have used it on the first computer, copied it to a second and used it, and now I am trying to use it on a new (older) computer. When I try to run it on this last computer I get the error message: "Compile error: user-defined type not defined" Can anyone help with why this is happening only on this one computer? Thanks for any suggestions.
Here is the beginning of the code with the line in question in red.:
Sub XL_to_text()
Dim i As Long, j As Long, k As Long, l As Long, lastrow As Long
Dim oFS As FileSystemObject
Dim oTS As TextStream
Dim FilesName As String