P
phui
I got a problem on company's logbook using Excel sheet. Recently it
happened twice, Excel sheet changed to another format file called
"File" with the random letter name such D123AB. What I am doing
recently is remotely copy this Excel file to a server, the code like
this:
Dim ExcelAp As New Excel.Application
Dim ExcelWb As Excel.Workbook
Dim ExcelWs As Excel.Worksheet
Dim i, j, k As Integer
Dim Filename As String
Dim ErrInfo As String
Dim Index, Temp_Index As Integer
Set ExcelWb = ExcelAp.Workbooks.Open("x:\logbook.xls") '.Add
ExcelWb.SaveCopyAs ("w:\br\logbook.xls")
ExcelWb.Close
ExcelAp.Quit
Set ExcelWb = Nothing
Set ExcelAp=Nothing
happened twice, Excel sheet changed to another format file called
"File" with the random letter name such D123AB. What I am doing
recently is remotely copy this Excel file to a server, the code like
this:
Dim ExcelAp As New Excel.Application
Dim ExcelWb As Excel.Workbook
Dim ExcelWs As Excel.Worksheet
Dim i, j, k As Integer
Dim Filename As String
Dim ErrInfo As String
Dim Index, Temp_Index As Integer
Set ExcelWb = ExcelAp.Workbooks.Open("x:\logbook.xls") '.Add
ExcelWb.SaveCopyAs ("w:\br\logbook.xls")
ExcelWb.Close
ExcelAp.Quit
Set ExcelWb = Nothing
Set ExcelAp=Nothing