Clearing IE cache and cookies through VBA?

M

Martin Schneider

Hi!

I'd like to clear IE's browser cache and cookies (i.e. the temporary
internet files folder). As this doesn't seem to be possible on a file
system level, I'd like to instruct the InternetExplorer to do this.

I am familiar with the InternetExplorer.Application object but was
unable to find an object reference or sample code how to call menu items
- can anybody point me in the right direction, please?

Thanks for your support.

Martin
 
M

Martin Schneider

Martin said:
Hi!

I'd like to clear IE's browser cache and cookies (i.e. the temporary
internet files folder). As this doesn't seem to be possible on a file
system level, I'd like to instruct the InternetExplorer to do this.

Did not find a way in VBA to do this but a workaround:

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

will do the job.

Best regards,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top