Hi,
A print an excel sheet and then i want to delete it. How will i know when the printing is over?
'print excel sheet
file.delete("c:\sheet1.xls")
If i write as above an error occurs because the sheet1 is still in use (being printed). So:
While not (sheet1.HasFinishedPrinting)
' nothing here as code, just looping
wend
file.delete("c:\sheet1.xls")
Tnx
A print an excel sheet and then i want to delete it. How will i know when the printing is over?
'print excel sheet
file.delete("c:\sheet1.xls")
If i write as above an error occurs because the sheet1 is still in use (being printed). So:
While not (sheet1.HasFinishedPrinting)
' nothing here as code, just looping
wend
file.delete("c:\sheet1.xls")
Tnx