+ Reply to Thread
Results 1 to 2 of 2

Delete specifc files from folders and subfolders given list in Excel

  1. #1
    Registered User
    Join Date
    05-20-2020
    Location
    USA
    MS-Off Ver
    10
    Posts
    28

    Delete specifc files from folders and subfolders given list in Excel

    Hello,

    I have a script that copies files from folders to another folder.

    Here is the code for copying files, how do I modify this code or optimize this code to delete files in the list?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,521

    Re: Delete specifc files from folders and subfolders given list in Excel

    Have a look at "Kill".
    I don't use it because there is no way back. I would say to be sure to have a message pop up with something like "Are you sure you want to delete this file?"
    Have a look here.
    https://exceloffthegrid.com/vba-code...-manage-files/
    Last edited by jolivanes; 04-18-2022 at 01:55 AM.

+ 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] macro to delete files with partial match name in folders and subfolders
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-19-2021, 02:29 PM
  2. Copy List of Folders, Subfolders and Files to New Location
    By MusicMan in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-23-2021, 09:09 AM
  3. [SOLVED] macro to delete all CSV files on my desktop desktop folders and and its subfolders
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-19-2017, 03:42 PM
  4. Needs macro to copy excel files from folders, subfolders to new folder
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2014, 08:53 AM
  5. Macro Code to Encrypt Multiple Excel Files in Folders and Subfolders
    By ali_1989 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2014, 12:53 PM
  6. [SOLVED] Map/List of folders, subfolders & files
    By Bogdan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-11-2006, 01:10 PM
  7. Creating folders and subfolders from excel file list
    By afaubert in forum Excel General
    Replies: 4
    Last Post: 11-08-2005, 07:50 PM

Tags for this Thread

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