Hey! Need help with Another KILL Code...

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
Hi,

Deleting files in specific folder worked with kill, but I am not sure how would I go ahead and delete the Internet history with KILL function.

current...
Code:
sub try()
Kill ("C:\Users\Pediez\AppData\Local\Microsoft\Windows\History\???")
' I am not sure what I should place in ??? area so that all the history gets deleted...

Please advise.
Will this task be possible with VBA Kill???

Thanks Ped;)
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
What files are in that folder? You could use a wildcard if they are HTM or something like *.HTM.
 
Upvote 0
All i can see is the web address i surfed...:biggrin:
Options are like lastweek, monday, tuesday etc...
'm using window vista. When i right click and try to check the file name it has just 2 options delete & open.

lemmi give it a try...

Thanks alot for helping!!!
 
Upvote 0
I have tried different ways like \*.*...but still does not work.

Please advise. It is not working....:confused:


Pedie
 
Upvote 0
I even tried it this way...I am sure someone can help make this work...

Please advise:confused:
Code:
Sub try()
On Error Resume Next
Kill ("C:\Users\Pediez\AppData\Local\Microsoft\Windows\History\Last Week\*.*")
MsgBox "Test Done"
End Sub
 
Upvote 0
Dan, thank you so much again....!

Yesterday..there was blackout here and no all net connection went offline...

Thank you so much it helped alot!;)

Ped
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top