Code:
Sub CATMain()
Set objNote = CreateObject("Scripting.FileSystemObject"): 'objNote.Visible = true
Set objNotepad = objNote.OpenTextFiles.Open("D:\test.txt")
Set objExcel = CreateObject("Excel.Application"): objExcel.Visible = true
Set objWorkbook = objExcel.Workbooks.Open("D:\test.xls")
End Sub
I made this script for opening an Exel file(xls) and a Text file(txt).
But it opens only Exel file not Text file.
How can I open a Text file in Catia like opening an Exel file?