Never mind, i have te code
strSQL = "SELECT * INTO [Excel 8.0;Database=" & Pad & strQryName & ".xls].[" & strQryName & "] FROM " & strQryName & ";"
CurrentDb.Execute strSQL
'Rename File after export
Hello!
I'm new here.
Question.
I have te following code to export mij Query to excell.
It works fine but, i'd like it this way:
Open an existing excel file (for example c.xls) and put my output in there and then rename c.xls to Format(Date, "YYYYMMDD") & "_Compensatie_" & ".xls".
Help...
Hello!
I'm new here.
Question.
I have te following code to export mij Query to excell.
It works fine but, i'd like it this way:
Open an existing excel file (for example c.xls) and put my output in there and then rename c.xls to Format(Date, "YYYYMMDD") & "_Compensatie_" & ".xls".
Help...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.