After I manage to export my data to excel sheet, how do I specify that I would like to insert a text under the last data of the last page? Not at every page but at the page where the last data is at, at the bottom.

this is my code:
VB Code:
  1. Private Sub cmdReport_Click()
  2. Dim oRs As adodb.Recordset
  3.     Dim oCnn As adodb.Connection
  4.     Dim oApp As Excel.Application
  5.     Dim oWB As Excel.Workbook
  6.     Dim oSW As Excel.Worksheet
  7.     Dim i As Integer
  8.     'Connect to your Access db
  9.     Set oCnn = New adodb.Connection
  10.     oCnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
  11.     App.Path & "\Car.mdb;Persist Security Info=False"
  12.     oCnn.Open
  13.  
  14.     'Create your recordset
  15.     Set oRs = New adodb.Recordset
  16.     oRs.Open "SELECT Custid, CustCom, CustName FROM Table1 ", oCnn, adOpenKeyset, adCmdText
  17.     'Now you will have only 2 columns listed
  18.     'Add the field names as column headers (optional)
  19.    
  20.     'Create an instance of Excel and add a new blank workbook
  21.     Set oApp = New Excel.Application
  22.     Set oWB = oApp.Workbooks.Add
  23.     oApp.Visible = True
  24.     'Add picture at left header
  25.     Set oSW = oWB.Worksheets("Sheet1")
  26.     With oSW.PageSetup.LeftHeaderPicture
  27.     .FileName = (App.Path & "/pic1.jpg")
  28.     .Height = 50
  29.         End With
  30.     oSW.PageSetup.LeftHeader = "&G"
  31.     oSW.PageSetup.HeaderMargin = 30
  32.     oSW.PageSetup.TopMargin = 90
  33.     'Page Orientation
  34.     oSW.PageSetup.Orientation = xlLandscape
  35.     'Resize Columns
  36.     oSW.Columns("B:B").ColumnWidth = 35
  37.     oSW.Columns("C:C").ColumnWidth = 21
  38.     'Specify alignment
  39.     oSW.Columns.HorizontalAlignment = xlLeft
  40.    
  41.     'Add the field names as column headers (optional)
  42.     For i = 0 To oRs.Fields.count - 1
  43.         oWB.Sheets(1).Cells(1, i + 1).Value = oRs.Fields(i).Name
  44.     Next
  45.     oWB.Sheets(1).Range("1:1").Font.Bold = True
  46.     oWB.Sheets(1).Cells(2, 1).CopyFromRecordset oRs, , MaxColumns:=3
  47.        
  48.     oRs.Close
  49.     Set oRs = Nothing
  50.     oCnn.Close
  51.     Set oCnn = Nothing
  52.     Set oWB = Nothing
  53.     Set oApp = Nothing
  54. End Sub