Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm looking to delete an excel document (.xlsx) from my project folder.
This is my best attempt,
'define the file to create/open myXLS_File = ThisDoc.Path & "\TempFile.xlsx" 'define Excel Application object excelApp = CreateObject("Excel.Application") 'set Excel to run visibly, change to false if you want to run it invisibly excelApp.Visible = False 'suppress prompts (such as the compatibility checker) excelApp.DisplayAlerts = False excelWorkbook = excelApp.Workbooks.Delete(myXLS_File)
Solved! Go to Solution.