+ Reply to Thread
Results 1 to 2 of 2

Macro to delete files

  1. #1
    J.wills
    Guest

    Macro to delete files

    Hi,

    I have a process and needs to find a short cut.

    I have around 20 users.These folks uses a custom crystal reports to export field from a database into excel files. All the excel files are saved in their own local machine.

    Ex.
    C:\employee1.xls
    C:\employee2.xls
    C:\employee3.xls

    From here they open the excel sheets and do what they need to. Data modifications, corrections and etc.

    Exactly at 2pm in the afternoon a custom application is ran and searches through all of the defined user machines, it merges all the data into an online database. The other thing that the application does is it opens a custom word document and saves it into each user's desktop that tells tell how many company they had processed for the day.

    I need a macro that is embedded into the word document so that at 3pm when they open the word document, the macro will clean out all the excel sheets from their c drive. If the document is not created on the user's desktop, no files should be deleted. Yes, I tried running a batch file but it wasn't working out.



    Any help? Thanks.

  2. #2
    Forum Administrator ExlGuru's Avatar
    Join Date
    03-17-2009
    Location
    India
    MS-Off Ver
    2003,2007
    Posts
    222

    Re: Macro to delete files

    Get the information related to your query:

    http://word.mvps.org/faqs/macrosvba/DeleteFiles.htm
    ExlGuru

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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