Excel VBA Course
Excel VBA Course - From Beginner to Expert

200+ Video Lessons
50+ Hours of Video
200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

View Course

vba code to find temp files

0

Trying to get a vba code to run and find all temp files and list them then action to delete all of them

Thank You

Answer
Discuss

Discussion

Zacrock

Firstly, please edit your question so the title isn't in capitals.

Secondly, what type of temp files are you hoping to delete? (You realise some are required, e.g. one of the file an Office app is currtently working on). Also where are you hoping to see/delete files (a folder) and why?
John_Ru (rep: 6142) Dec 20, '23 at 3:40 pm
John-Ru

these are temp files in the following folders

c:\\windows\tem[

c:\user\xxxx\local\temp


Thank you
zacrock (rep: 6) Dec 20, '23 at 8:19 pm
Add to Discussion

Answers

0

Zacrock

Don't have much time but you don't/shouldn't need VBA to delete temp files (and need to take care when deleting).

Suggest you look at this YouTube video Windows Temporary Files – Everything you want to know or elsewhere on tbe internet. 

Discuss


Answer the Question

You must create an account to use the forum. Create an Account or Login