Your not using the book or sheet objects and running everything off ogf the application object which is incorrect.
VB Code:
  1. Set objExcel = CreateObject("excel.application") 'Starts the Excel Session
  2.     Set objBook = objExcel.Workbooks.Add             'Add a Workbook
  3.     Set objSheet = objBook.Sheets.Item(2)        'Select second Sheet
  4.    
  5.     objExcel.Visible = True
  6.    
  7.     objSheet.Cells(1, 1).Value = "Kod Kategori BA"
  8.     objSheet.Cells(1, 2).Value = "No.BA"
  9.    
  10.     With objSheet
  11.         .Cells(n, 1).Value = ((Trim(DataHRMIS.Recordset.Fields("BACatCd").Value)))
  12.         .Cells(n, 2).Value = ((Trim(DataHRMIS.Recordset.Fields("BANo").Value)))
  13.     End With
  14.    
  15.     Set objSheet = Nothing
  16.     objBook.Close True
  17.     Set objBook = Nothing
  18.     objExcel.Quit
  19.     Set objExcel = Nothing