Bonediggler
Technical User
Hi There--
I can open the Excel template I want from Access, however, the underlying data query does not run upon opening. The code I am using is as follows:
Private Sub cmdProtocol_Click()
Dim oXL As Object
Dim oExcel As Object
Dim sFullPath As String
sFullPath = "...template.xlt"
Set oXL = CreateObject("Excel.Application")
With oXL
.Visible = True
.Workbooks.Open (sFullPath)
End With
Set oXL = Nothing
Exit Sub
End Sub
Please let me know what the needed code is, and where it fits in this code.
Thank you!
I can open the Excel template I want from Access, however, the underlying data query does not run upon opening. The code I am using is as follows:
Private Sub cmdProtocol_Click()
Dim oXL As Object
Dim oExcel As Object
Dim sFullPath As String
sFullPath = "...template.xlt"
Set oXL = CreateObject("Excel.Application")
With oXL
.Visible = True
.Workbooks.Open (sFullPath)
End With
Set oXL = Nothing
Exit Sub
End Sub
Please let me know what the needed code is, and where it fits in this code.
Thank you!