Link to home
Start Free TrialLog in
Avatar of JohnDoeSr
JohnDoeSr

asked on

Looking for some VB 6 code to delete cookies in IE

I'm looking for a sub or some code that'll delete cookies in IE. I'm using OLE to control an instance of IE and would like to delete cookies at the push of a button or maybe right at the sub form load.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of BrianGEFF719
BrianGEFF719
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JohnDoeSr
JohnDoeSr

ASKER

I'm getting red error lines on the pasted code that the PAQ above suggests. Specifically every "Begin" line like

Begin VB.Form F_ClearCache
Begin VB.TextBox Total
Begin VB.CheckBox C_Hist

I can see its trying to set the properties of these objects, but why won't  VB accept those lines? I've created the objects in case that was the problem, but nada. The error I'm getting when hitting run is "Compile Error: Expected end of statement" and the f_ClearCache in the first line lights up (Begin VB.Form F_ClearCache)

Because that code shouldn't be pasted into the IDE, you need to create those files using notepad and save them as the filename.

Make sense?
Ah, I've never done that before. So the IDE paste should begin with "Option Explicit" ?