+ Reply to Thread
Results 1 to 4 of 4

Trouble copying files using Call Shell

  1. #1
    Registered User
    Join Date
    11-18-2008
    Location
    Dallas
    Posts
    67

    Trouble copying files using Call Shell

    All,
    I am experiencing difficulty in getting files to copy from selected folders to a target folder (see code below).
    When I execute I don't get an error just nothing happens.
    Any help is greatly appreciated.


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Trouble copying files using Call Shell

    Set a reference to MS Scripting Runtime, and use code like this:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    11-18-2008
    Location
    Dallas
    Posts
    67

    Re: Trouble copying files using Call Shell

    Thank you Bernie you just saved me hours of frustration. If you are ever in Dallas Tx I owe you a drink sir...

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: Trouble copying files using Call Shell

    Just pay it forward when you become an Excel Expert - After living in Texas for 2 years, I don't feel the need to ever return

+ 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 folder (call shell) not known full filename
    By Ignasis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2016, 09:51 AM
  2. trouble calling shell from excel vba
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-28-2015, 10:17 AM
  3. call shell from VBA
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2014, 03:52 PM
  4. Call Shell - return code?
    By swoop99 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2013, 09:18 AM
  5. Shell - trouble with variables and quotes
    By brl8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-30-2010, 12:01 PM
  6. CALL SHELL doesn't recognise the directory
    By plancast in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2009, 12:00 PM
  7. Shell Invalid Procedure call or argument
    By rgans in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-05-2005, 12:23 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