+ Reply to Thread
Results 1 to 2 of 2

Macro to retrieve file from a folder and basically update the format

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    86

    Macro to retrieve file from a folder and basically update the format

    I WOULD LIKE TO Create an Excel MACRO or script that will retrieve files from a directory and use the info within that file to populate a file labeled “This_is_how_the_new_layout_should_look.xls”

    · It should auto execute when opened

    · Should list the files to be process located within the c:\ directory (example mobile_sprint_20131008932000.xls) ***GET THE MOST RECENT FILES*****

    When the “This_is_how_the_new_layout_should_look.XLS” file is open it should have 2 buttons EXECUTE and QUIT

    When They click the EXECUTE it should

    Copy the file from the directory(where the ORIGINAL file is stored example C:\ mobile_sprint_20131008932000.xls ) use the info within that file to populate the file labeled “This_is_how_the_new_layout_should_look.xls” (THE File is ATTACHED and stored in the same directory)

    Once that is done a message box will pop up to show completed.

    Then finally it should save the file with the same naming convention as the ORIGINAL file with a _Load .csv as its prefix

    Example mobile_sprint_20131008932000_Load.csv. ****BUT KEEP THE ORIGNAL FILE******

    I have attached how the file arrives in the folder, and what the completed worksheet should look like

    PLEASE ASSIST Thanks
    Last edited by drobinson782001; 11-12-2013 at 11:07 PM.

  2. #2
    Registered User
    Join Date
    09-10-2012
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Macro to retrieve file from a folder and basically update the format

    SO the main idea is to have a template that has 2 buttons EXECUTE & QUIT on one sheet. on the other sheet is the headers with the new layout
    once the execute button is clicked, it should go the the folder where all the files come in (c, copy the info from that raw file which has headers also, and paste into the new formatted xls file. once all is done, automatically save the updated file with a _load.xls extension and place it back into the folder

+ 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] Excel macro to pull retrieve data from multiple workbooks in a folder
    By tech_frk in forum Excel Programming / VBA / Macros
    Replies: 39
    Last Post: 03-07-2013, 08:04 PM
  2. Retrieve File names from a folder with last modified username
    By elavarasans in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-10-2013, 12:48 PM
  3. [SOLVED] Macro to copy file names and data from each file in a folder into master spreadsheet
    By dee1989 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-10-2012, 05:52 AM
  4. macro to retrieve path to opened file
    By windsurferLA in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2005, 10:06 AM
  5. [SOLVED] macro to move from file to file, folder to folder
    By davegb in forum Excel General
    Replies: 0
    Last Post: 01-21-2005, 04:06 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