+ Reply to Thread
Results 1 to 2 of 2

Error when VBA tries to copy on Macserver from Windows 7

Hybrid View

  1. #1
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,347

    Error when VBA tries to copy on Macserver from Windows 7

    I have a macro that used a fileserviceobject command to copy files.
    It is designed to be run on a windows computer in a windows 7 environment to copy a file on a mac server.

    it has been working until recently but now it seems to fail when run from a windows 7 environment.

    Strangely it works when I run it from an XP environment. Or if I tell it to copy files that are not on the mac server (unfortunately these are not the combinations that are required!). I can also copy files manually.

    If I step through the VBA it gets to the Fileserviceobject line and copies the file but then it hangs and will not proceed any further.

    We get an error

    System error &H80070040 (-2147024832)

    if I delete the file while it is in the 'hung state' it gives a "permission denied" message.

    windows 8.1 also fails in the same way.


    So in summary some sort of issue occurs in the copy process for VBA run from windows 7 (on excel 2010) when working on a specific server (a mac server)

    Has anyone else encountered this behavior and have any ideas where the issue might be, or have an idea for a work around?
    Last edited by scottiex; 02-25-2015 at 06:55 PM.

  2. #2
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,347

    Re: Error when VBA tries to copy on Macserver from Windows 7

    Update : I discovered that FileCopy sourcefile, destinationfile works (while using filesystemObject doesn't) so I think I have a work around

+ 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. VBA code Error after changed to windows 7, working fine in windows XP before
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-11-2014, 06:23 AM
  2. Replies: 4
    Last Post: 06-20-2013, 09:30 AM
  3. [SOLVED] Windows XP : Why is my copy of windows xp not valid?
    By J.wills in forum Microsoft Windows Help
    Replies: 4
    Last Post: 11-30-2009, 09:38 AM
  4. Replies: 1
    Last Post: 11-28-2009, 07:17 PM
  5. [SOLVED] Windows 7 :Windows 7 repair installation without booting into windows?
    By shanew in forum Microsoft Windows Help
    Replies: 0
    Last Post: 11-28-2009, 01:28 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