OK, this is a really rough, brute force example. (I don't know enough about your dB.)
This is AIR CODE!!
Code:
Public Sub countRecords1107()
Dim db As DAO.Database
Dim rst As DAO.Recordset
'variables to hold record counts
Dim rsCount1 As Long, rsCount2 As Long, rsCount3 As Long
Dim rsCount4 As Long, rsCount5 As Long, rsCount6 As Long
Dim rsCount7 As Long, rsCount8 As Long, rsCount9 As Long
' Dim queryName As String
Dim objXL As Object
Dim objWB As Object
Dim objWS As Object
Set db = CurrentDb
'initialize variables
rsCount1 = 0
rsCount2 = 0
rsCount3 = 0
rsCount4 = 0
rsCount5 = 0
rsCount6 = 0
rsCount7 = 0
rsCount8 = 0
rsCount9 = 0
'1st query
Set rst = db.OpenRecordset("MY_QUERY_NAME")
'Source Data Records
If Not (rst.EOF And rst.BOF) Then
rst.MoveLast
rsCount1 = rst.RecordCount
End If
rst.Close
'2nd query
Set rst = db.OpenRecordset("HIS_QUERY_NAME")
'Source Data Records
If Not (rst.EOF And rst.BOF) Then
rst.MoveLast
rsCount2 = rst.RecordCount
End If
rst.Close
'3rd query
Set rst = db.OpenRecordset("OUR_QUERY_NAME")
'Source Data Records
If Not (rst.EOF And rst.BOF) Then
rst.MoveLast
rsCount3 = rst.RecordCount
End If
rst.Close
'4th query
Set rst = db.OpenRecordset("HER_QUERY")
'Source Data Records
If Not (rst.EOF And rst.BOF) Then
rst.MoveLast
rsCount4 = rst.RecordCount
End If
rst.Close
'5th query
Set rst = db.OpenRecordset("THIS_QUERY")
'Source Data Records
If Not (rst.EOF And rst.BOF) Then
rst.MoveLast
rsCount5 = rst.RecordCount
End If
rst.Close
'6th query
Set rst = db.OpenRecordset("THAT_QUERY")
'Source Data Records
If Not (rst.EOF And rst.BOF) Then
rst.MoveLast
rsCount6 = rst.RecordCount
End If
rst.Close
'7th query
Set rst = db.OpenRecordset("ANOTHER_QUERY")
'Source Data Records
If Not (rst.EOF And rst.BOF) Then
rst.MoveLast
rsCount7 = rst.RecordCount
End If
rst.Close
'8th query
Set rst = db.OpenRecordset("qryStart")
'Source Data Records
If Not (rst.EOF And rst.BOF) Then
rst.MoveLast
rsCount8 = rst.RecordCount
End If
rst.Close
'9th query
Set rst = db.OpenRecordset("qryEnd")
'Source Data Records
If Not (rst.EOF And rst.BOF) Then
rst.MoveLast
rsCount9 = rst.RecordCount
End If
rst.Close
' in the Locals window, you should see the variables and record counts.
Set rst = Nothing
Set db = Nothing
Set objXL = CreateObject("Excel.Application")
Set objWB = objXL.Workbooks.Open("L:\Metrics\Dashboard\Metrics_Dashboard_v1001.xlsx")
Set objWS = objWB.worksheets("DashBoard")
With objWS
.Cells(3, 2).Value = rsCount1
.Cells(4, 2).Value = rsCount2
.Cells(5, 2).Value = rsCount3
.Cells(6, 2).Value = rsCount4
.Cells(7, 2).Value = rsCount5
.Cells(8, 2).Value = rsCount6
.Cells(9, 2).Value = rsCount7
.Cells(10, 2).Value = rsCount8
.Cells(11, 2).Value = rsCount9
End With
objXL.Visible = True
'still need to save the workbook and do clean up
End Sub
See Ken's ACCESS Examples and Information for Working With EXCEL Workbook Files
http://www.accessmvp.com/kdsnell/EXCEL_MainPage.htm
for examples of how to write to Excel workbooks/worksheets.