If a File exists in CurrentProject.Path & "\Book1.xlsx" , I want to delete it
and create a new file . How can I do it using MsAccess vba . Please help !
Also how to create a new Workbook Book1.xlsx with only one WorkSheet called Sheet1
If a File exists in CurrentProject.Path & "\Book1.xlsx" , I want to delete it
and create a new file . How can I do it using MsAccess vba . Please help !
Also how to create a new Workbook Book1.xlsx with only one WorkSheet called Sheet1
Use Kill. Example:
Kill CurrentProject.Path & "\Book1.xlsx"
Bing: Access VBA create Excel file
http://www.tech-archive.net/Archive/.../msg00164.html
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Here is an example. You will need to add a save command with the path.
https://www.accessforums.net/access/...tml#post280600
Thanks for the response. this helps