+ Reply to Thread
Results 1 to 3 of 3

move file folder

  1. #1
    Registered User
    Join Date
    09-01-2011
    Location
    portugal
    MS-Off Ver
    Excel 2007
    Posts
    4

    move file folder

    It is possible to move a file from one folder to another with the file open?
    If so .... I need help using macros but I'm very new at this

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: move file folder

    No, typically operating systems "lock" files in use so they cannot be acted on by other actions until the user closes the file.

    With the file closed, it is trivial for a macro to move a known file to another location.

    With a file open, perhaps "saving" the open file TO the new location would sufficiently break the connection to the old location and allow the newly saved document to now delete the original file still on the hard drive...
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-01-2011
    Location
    portugal
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: move file folder

    Hello Jerry

    I have an original file that is open, writes to the client's name and the date and run a macro that creates the file "name & date + number" in the "TO DO" folder.
    The document is worked by several people and when this is finished we have to put in the "Ready to be Sent" folder.
    With a macro to copy the document to the "Ready to be sent" folder and go to the folder "TO DO" and delete the other file my problem is solved.
    Never again would my boss nagging me because someone did not do its job well ...

+ 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