+ Reply to Thread
Results 1 to 8 of 8

MoveFile Error

  1. #1
    Registered User
    Join Date
    02-21-2019
    Location
    Milan
    MS-Off Ver
    2010
    Posts
    6

    MoveFile Error

    Please Login or Register  to view this content.
    Error MoveFile.
    file does not move me, can you help me?

  2. #2
    Forum Contributor
    Join Date
    08-26-2014
    Location
    Finland
    MS-Off Ver
    365
    Posts
    199

    Re: MoveFile Error

    What kind of error is the code producing? Can you attach your workbook?

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,514

    Re: MoveFile Error

    For starters.
    MoveFile is part of the FileSystemObject so
    Please Login or Register  to view this content.
    instead of
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Registered User
    Join Date
    02-21-2019
    Location
    Milan
    MS-Off Ver
    2010
    Posts
    6

    Re: MoveFile Error

    it gives me no mistake the problem that does not move the files, where I'm wrong in the code

    ff.MoveFile Source:=origineFile.Path & "\", Destination:=fs.Path & "\"

  5. #5
    Registered User
    Join Date
    02-21-2019
    Location
    Milan
    MS-Off Ver
    2010
    Posts
    6

    Re: MoveFile Error

    Please Login or Register  to view this content.

    Error:
    x.JPG

    invalid file name or number
    run-time error 52

  6. #6
    Registered User
    Join Date
    02-21-2019
    Location
    Milan
    MS-Off Ver
    2010
    Posts
    6

    Re: MoveFile Error

    I solved
    1) moved the files -> resolved
    2) renamed the main folder -> resolved
    3) delete the sub-folders -> not solved

    you can help me?
    Please Login or Register  to view this content.

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,514

    Re: MoveFile Error

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-21-2019
    Location
    Milan
    MS-Off Ver
    2010
    Posts
    6

    Re: MoveFile Error

    I always mistake in fso.DeleteFolder subfs
    it crashes is not go ahead for deleting sub folders

+ 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] reliability issues with .MoveFile
    By diberlee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2018, 10:32 AM
  2. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  3. Outlook Macro .MoveFile Erring
    By Anexandra in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 01:49 PM
  4. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  5. Replies: 0
    Last Post: 03-30-2006, 08:40 PM
  6. Error Handling - On Error GoTo doesn't trap error successfully
    By David in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-16-2006, 02:10 PM
  7. Movefile "Permission Denied"
    By Gordon Gecko in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2005, 04:05 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