Sub RemoveMe()
Dim folder as string
Dim myfile as string
'assign the name of the folder to the folder variable
'notice the ending backslash"\"
folder = "C:Abort\"
Myfile= dir(folder, vbNormal)
Do while myfile <>""
Kill folder & myfile
myfile = Dir
Loop
RmDir folder
End Sub
Hope this helps. You will need to amend it slightly for a file .
Thanks for your help but to be honest with you I don't know what to do. Can you tell me what I've gotta change myself into different values like folder or file name? Can you explain to me what it all does? Hope you can do this for me. Thanks.