Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing Internet History and temporary files using vba

Status
Not open for further replies.

sunnytahir

Programmer
May 11, 2003
32
Dear Sirs,

How can i clean internet history or temporary files using
vba in excel.

Thanks in advance for your kind help in this matter.

Best regards.

Tahir
 
Hi,

I assume that these files are all in one folder.

You might want to use the FileSearch approach to identify the files and then use the following loop:

[For I = 1 To .FoundFiles.Count]
[Kill .FoundFiles(I)]
[Next I]

You can check the Excel Help for the different FileSearch properties & methods.

I use a similar approach to clear my cache.

Hope this helps.

Cheers,

Roel

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top