Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim xlExcel As Excel.Application
Dim xlWorkBook As Excel.Workbook
Dim xlWorkSheet As Excel.Worksheet
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
dim strUrl As String
strURL = "C:\exceltempl.xls"
'Create the Excel Application, Workbook and Worksheet
Set xlExcel = Excel.Application
Set xlWorkBook = xlExcel.Workbooks.Open(strURL)
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset("query", dbOpenDynaset)
rst.MoveFirst
iRow = 1
Do Until rst.EOF
For iCol = 1 To (rst.Fields.Count)
xlWorkSheet.Cells(iRow, iCol + 1) = rst.Fields
Next
iRow = iRow + 1
rst.MoveNext
Loop