Hi, when i open an excel template from an Access button the user can overwrite the data and save over the file. How can i get the template to open as a new file (like it i open it from windows explorer?)
This is my code..
Many thanks
Brian
This is my code..
Code:
Private Sub Command1_Click()
'Open Enquiry Excel Template
Dim ExcelObject As Object
Set ExcelObject = GetObject("S:\Enquiry Template.xltx")
ExcelObject.Application.Visible = True
ExcelObject.Application.Workbooks(1).Activate
ExcelObject.Windows(1).Visible = True
End Sub
Many thanks
Brian