+ Reply to Thread
Results 1 to 6 of 6

Create folder and copy in to that folder - VBA

  1. #1
    Guest
    Join Date
    05-09-2015
    Location
    Moon
    MS-Off Ver
    MS office 2013
    Posts
    24

    Create folder and copy in to that folder - VBA

    Hi,

    I have created the following code to first create a folder based on todays date. Now I want to copy in to that folder which I created.
    Tried the following code but struggle how I should define folder location in the last part of my code so it will copy in to that folder.



    Please Login or Register  to view this content.



    Best regards,

  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: Create folder and copy in to that folder - VBA

    Wouldn't it just be:

    Please Login or Register  to view this content.
    _________________
    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
    Guest
    Join Date
    05-09-2015
    Location
    Moon
    MS-Off Ver
    MS office 2013
    Posts
    24

    Re: Create folder and copy in to that folder - VBA

    Thanks for your reply! I will try your suggestion tomorrow.

  4. #4
    Guest
    Join Date
    05-09-2015
    Location
    Moon
    MS-Off Ver
    MS office 2013
    Posts
    24

    Re: Create folder and copy in to that folder - VBA

    I tried your suggestion and it worked up until the point that it creates the acutal folder, which is of course good. But how to make it export into that created folder?
    Last edited by Sinep D; 07-13-2015 at 11:30 AM.

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

    Re: Create folder and copy in to that folder - VBA

    Maybe you're just missing a path separator:
    Please Login or Register  to view this content.

  6. #6
    Guest
    Join Date
    05-09-2015
    Location
    Moon
    MS-Off Ver
    MS office 2013
    Posts
    24

    Re: Create folder and copy in to that folder - VBA

    That was it. Always the small things

    Thanks!

+ 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] Loop Through Folder, Create Emails with Sub Folder Names in Subject, Attach files in sub
    By Rschwar23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2015, 10:06 AM
  2. create new folder at one location and copy photos in that folder from other location
    By meer_ali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2014, 05:20 AM
  3. [SOLVED] Create a new folder based on a cell name or value and save copy onto that folder
    By Le_Tiago in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-20-2012, 01:33 PM
  4. create a compressed folder or zipped folder then copy workbooks to it.
    By Ironman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-04-2012, 03:56 PM
  5. Replies: 6
    Last Post: 08-11-2006, 03:41 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