T
tarantula
hello,
i have a .csv file created through a word macro that serves as a
intermediate file in my project. But i want to delete it after i hav
used it in my code. I used the following code:
Dim KillFile As String
KillFile = "c:\Document And Settings\User\Desktop\Reviewer.csv"
'Check that file exists
If Len(Dir$(KillFile)) > 0 Then
'First remove readonly attribute, if set
SetAttr KillFile, vbNormal
'Then delete the file
Kill KillFile
But the above code doesnt work and gives error message.
Thank you in advance.
Seeking Help!!
Tarantula
i have a .csv file created through a word macro that serves as a
intermediate file in my project. But i want to delete it after i hav
used it in my code. I used the following code:
Dim KillFile As String
KillFile = "c:\Document And Settings\User\Desktop\Reviewer.csv"
'Check that file exists
If Len(Dir$(KillFile)) > 0 Then
'First remove readonly attribute, if set
SetAttr KillFile, vbNormal
'Then delete the file
Kill KillFile
But the above code doesnt work and gives error message.
Thank you in advance.
Seeking Help!!
Tarantula