+ Reply to Thread
Results 1 to 2 of 2

Delete a folder even file is open

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Delete a folder even file is open

    hi, everyone

    i want to delete this folder forcefully with all files in folder even file is open

    folder path = "Z:\42766\Jan 2 Dec 2014\1.12.16\"

    thanx alot
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Delete a folder even file is open

    It's only possible if files saved in that folder are set to 'read only'. If another user has a file open and locked for read/write access then you can't delete it.

+ 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] Open word file from userform with folder and file names as per textbox values
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-14-2015, 03:57 PM
  2. Need Help to Open File from assigned Folder and Check one condition , Delete and Save.
    By Naveed Raza in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2013, 02:23 PM
  3. [SOLVED] Open specific folder, select file to open and copy then paste
    By Kranky in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-22-2012, 12:14 AM
  4. How to get the open file dialog to open to a certain folder
    By tenk283 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2010, 11:54 PM
  5. Open a folder and delete contents Macro
    By ninja0059 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2008, 02:32 PM
  6. File Open Dialog Box Open at Set Folder
    By Soltisolti in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-10-2007, 10:05 PM
  7. open file from folder save in new folder
    By tim64 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-17-2005, 03:19 PM

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