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.
Private Sub Command13_Click()
Dim XL As Object
Dim XLBook As Object
Dim XLSht As Object
Dim DB As DAO.Database
Dim RS As DAO.Recordset
Set XL = GetObject("C:\pbfstax000000.xls")
' Whatever your existing XL file is.
Set XLBook = XL.Parent
Set XLSht = XL.Worksheets("Working Template") ' Whatever existing Sheetname is.
Set DB = CurrentDb
' Open RS with existing query or SQL.
Set RS = DB.OpenRecordset("DailyExportQuery2")
' or
' Set upper left of data.
XLSht.Range("A3").CopyFromRecordset RS
'XLBook.Visible = True ' Optional
XLBook.Windows(1).Visible = True
XL.Save
XLSht.Application.Quit
Set XLSht = Nothing
Set XLBook = Nothing
Set XL = Nothing
End Sub