+ Reply to Thread
Results 1 to 2 of 2

VBA code to open all files in a directory and move data to destination sheet

  1. #1
    Registered User
    Join Date
    02-06-2017
    Location
    California, US
    MS-Off Ver
    Office 2016
    Posts
    38

    VBA code to open all files in a directory and move data to destination sheet

    Hello,

    I am having trouble with a macro I am attempting to create.

    I would like to use this macro to perform a few steps (listed below) to automate a task.

    Step 1: I need to open all or one file in a specific directory and create a new sheet in the workbook for that file/s. (I believe I have a good handle on this step so far but any advice is welcomed)

    Step 2: These file/s in this specific directory will always have the data I need in a specific cell in the sheet. I would like to move the data from the file I am opening to the "destination Sheet" and dump it in the correct column.

    I cannot wrap my head around the correct code to move data that is in a cell that has yet to be created which is where I find myself. I have attached an example, any advice is welcomed

    Code for step 1
    Please Login or Register  to view this content.
    Thank you,
    Anthony
    Attached Files Attached Files
    Last edited by anthony777; 06-08-2017 at 02:27 PM.

  2. #2
    Registered User
    Join Date
    02-06-2017
    Location
    California, US
    MS-Off Ver
    Office 2016
    Posts
    38

    Re: VBA code to open all files in a directory and move data to destination sheet

    [[[Deleted duplicate]]]
    Last edited by anthony777; 06-08-2017 at 02:25 PM.

+ 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] Code to open Files in a Directory and change formula
    By coach.32 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-16-2015, 02:07 AM
  2. Macro to Move files from one directory to other directory
    By Shanthuday in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2013, 07:21 AM
  3. Replies: 1
    Last Post: 04-19-2012, 07:59 PM
  4. Excel Macro Code Request for List files and Move specified directory
    By ganeshinscribe in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-19-2012, 08:38 AM
  5. Move files from one directory to another based on excel data
    By CWinkler in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-28-2011, 10:05 PM
  6. Replies: 1
    Last Post: 04-28-2011, 05:02 PM
  7. Problem with code - move files to another directory
    By uncleslinky in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2011, 10:06 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