Hi again,
I have reference for Microsoft Excel 11.0 ..... some times works the VBA
Code with the Cell function and some times it doesn't..... The errors I get
are 1004(method 'Cells' of object '_Global' failed) and 462 , sometimes,
(remote server isn't available), I work locally.
The Code:
eg.
....
LastRow=....(From Recordset)
LastCol=....(From Recordset)
.....
Set objXL = New Excel.Application
Set objWkb = objXL.Workbooks.Open(WKB_PATH & XLT_NAME)
objWkb.SaveAs (WKB_PATH & WKB_NAME)
objXL.Visible = True
Set objSht = objWkb.Worksheets(SHT_NAME) ' error 9
objSht.Activate
objSht.Range(Cells(LastRow, 2), Cells(LastRow, LastCol)).Font.Bold =
True ' <- Here is the Problem
.....
end of eg.
Any Idea?
Thanks!