+ Reply to Thread
Results 1 to 2 of 2

create new folder at one location and copy photos in that folder from other location

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    Riyadh
    MS-Off Ver
    Excel 2007
    Posts
    18

    create new folder at one location and copy photos in that folder from other location

    Hi Friends,

    I'm trying to create a new folder and copy all the files present in photos folder to the newly created folder. I will be grateful to you if you can help me with this issue. Hope the issue is understood.

    I tried some coding here, but it is not working... pls look into the code as below:

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    02-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    187

    Re: create new folder at one location and copy photos in that folder from other location

    'i' should be declared as an integer, not a string.

    ActiveCell needs to change for each value of 'i', I presume, so use:

    Please Login or Register  to view this content.
    Where X refers to your column and Row, depending on which one is relevant then one should be static and one should be replaced with i, for example if all your filenames are in column A, starting in row 1 to 10, then:

    Please Login or Register  to view this content.
    Hope that helps.

+ 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. new folder creation and moving of photos into that created folder on different drive
    By meer_ali in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-20-2014, 02:29 AM
  2. [SOLVED] Macro to Copy excel file from a location to a folder on Desktop
    By harish.chinni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2013, 02:17 AM
  3. VBA: Copy contents of folder from Shared location to C drive
    By niceguy21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2013, 01:25 PM
  4. Open a folder location with VBA?
    By comptechbranden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2007, 10:59 AM
  5. Temporary Folder Location
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2006, 07:10 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