View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
RB Smissaert RB Smissaert is offline
external usenet poster
 
Posts: 2,452
Default Code to Clear IE Cache

This is one way:

Private Declare Function DeleteUrlCacheEntry Lib "Wininet.dll" _
Alias "DeleteUrlCacheEntryA" _
(ByVal lpszUrlName As String)
As Long

Sub ClearCache(strURL As String)

If DeleteUrlCacheEntry(strURL) = 0 Then
MsgBox "The cached couldn't be cleared, so" & _
vbCrLf & "possibly you won't get the latest.", , _
"clearing cache"
End If

End Sub


Sub test()

ClearCache "http://www.google.co.uk/"

End Sub


RBS



"CM4@FL" wrote in message
...
Can someone please provide me with the coding to clear my IE cache?

Thanks