ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Clearing IE cache and cookies through VBA? (https://www.excelbanter.com/excel-programming/431427-clearing-ie-cache-cookies-through-vba.html)

Martin Schneider

Clearing IE cache and cookies through VBA?
 
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

Martin Schneider

Clearing IE cache and cookies through VBA?
 
Martin Schneider schrieb:
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


All times are GMT +1. The time now is 09:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com