Dim xlapp As New Excel.Application
Dim xlbook As New Excel.Workbook
Set xlbook = xlapp.Workbooks.Open("C:\Calvin\MyWorkbook.xls")
With xlbook 'Write to cell A1 in the first sheet
.Worksheets(1).Range("A1") = "Calvin" 'Write to cell A1 in the second sheet
.Worksheets(2).Range("A1") = "Smith"
End With
xlapp.ActiveWorkbook.Save
xlapp.Quit
ErrorHandling_Exit:
Exit Sub
ErrorHandling_Err:
If Err Then
'Trap your error(s) here, if any!
Resume ErrorHandling_Exit
End If