RELEVANT LINES OF CODE:
Dim strSourceTab = "DRS"
Dim strSrcFile = "DRS.csv"
....
....
....
objSourceExcel = CreateObject("Excel.Application")
objSourceWB = objSourceExcel.WorkBooks.Open(strSrcDirectory & strSrcFile)
objSourceWS = objSourceExcel.ActiveWorkBook.WorkSheets(strSourceTab)
objSourceWS.Activate()
objWriter.WriteLine("file opened for Read.")
...
...
objSourceWB = objSourceExcel.WorkBooks.Open(strSrcDirectory & strSrcFile)
....
...
...
objSourceWB.Close()
|