+ Reply to Thread
Results 1 to 4 of 4

Code for deleting all files in a folder & its subfolders

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    10

    Code for deleting all files in a folder & its subfolders

    Hi all,

    I want to delete all files (i only have excel files) in a folder & its subfolder. I tried using
    Please Login or Register  to view this content.
    but that doesn't work for subfolders. I only want to delete the files. The folder & subfolders should not be deleted. Anyone have an idea???

    Many thanks in advance.

    Swalih
    Last edited by Swalih; 02-17-2014 at 03:39 AM.

  2. #2
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    Re: Code for deleting all files in a folder & its subfolders

    maybe this

    Please Login or Register  to view this content.
    Last edited by venkatpvc; 02-17-2014 at 03:07 AM.
    Give Feedback and Click(*)

  3. #3
    Registered User
    Join Date
    01-09-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Code for deleting all files in a folder & its subfolders

    Thank You very much Venkat. how should i Give Feedback and Click(*)???

  4. #4
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    Re: Code for deleting all files in a folder & its subfolders

    thank you for the reply,
    yes you can give rep by clicking star button under my post.

    (*)

    and one more thing if this solve your problem please mark this thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] list of subfolders in folder - without files and sub-subfolders
    By MartyZ in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2022, 10:56 AM
  2. [SOLVED] Reading Excel files in folder/subfolders
    By crakter in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-21-2014, 05:48 AM
  3. Moving Files from Folder and Subfolders
    By mvinay in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2014, 01:59 AM
  4. Counting files in folder including subfolders also and folder size
    By mido609 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 03:26 PM
  5. [SOLVED] Opening Excel files in same folder through a Macro - but not subfolders?
    By toffee_madman in forum Excel General
    Replies: 9
    Last Post: 10-19-2011, 11:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1