Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Help with Macro

Hi all

I have a macro that exports an object into excel and saves it and emails it to multiple recipients.

Can anyone tell me what command i would use to also delete the file please?

Here is the Export part of the macro.

Sub Export1
theDate = Right(String(2,"0") &  Day(Now()),2) _
        & Right(String(2,"0") & month(Now()),2) _
        & Year(Now())

ActiveDocument.ClearAll false
pathcorp="C:\TEST\"
set corp = ActiveDocument.GetSheetObject("TB05")
corp.ExportBiff  pathcorp & "TEST - " & theDate & ".xls"

set MyTable = ActiveDocument.GetSheetObject("TB05")
path="C:\TEST\"
   
Set XLApp = Nothing
Set Table = Nothing

Many thanks

Chris

I have also posted this in 'New to Qlikview'

0 Replies