Results 1 to 12 of 12

Code request to delete files from folder

Threaded View

  1. #8
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Code request to delete files from folder

    Hello mso3,

    The attached workbook has a UserForm, Standard VBA Module and a Class Module. All of these provide a user interface for selecting the folder and file types to be deleted.

    I know this is a lot more that what you asked for. Deleting files requires safeguards to prevent accidental deletion of files. A simple dialog box can not provide that protection.

    You can add more file types to the UserForm if needed. If you are unsure how to do this, let me know and I can guide through the process.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel VBA code for selecting a folder then search & open specified files in that folder
    By Excelrookie_1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-27-2021, 03:09 AM
  2. [SOLVED] Help request to convert all the word files to PDF stored in a folder
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2016, 07:06 AM
  3. [SOLVED] VB Code to delete files from folder
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2015, 09:25 AM
  4. Code request to restrict user to edit/delete after -- days
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-08-2015, 12:48 PM
  5. [SOLVED] VBA Code to Move Individual Files from 1 Folder to a new Folder
    By mike.lawrie448 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-21-2014, 07:05 AM
  6. Code request to delete numbers in column B automatically
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2014, 12:53 AM
  7. Excel Macro Code Request for List files and Move specified directory
    By ganeshinscribe in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-19-2012, 08:38 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