Closed Thread
Results 1 to 2 of 2

Loop through all files in a folder with a specific file extension and save in excel

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Fort Myers, Florida
    MS-Off Ver
    Excel 2017
    Posts
    29

    Loop through all files in a folder with a specific file extension and save in excel

    Hello,

    I am hoping someone can help me with a VBA that looks into a specific folder "C:\2019\Q1_2019" for a file extension ".jcp" that will open each file in excel and save those excel files in another folder "C:\Horse Racing Data\JCP Files\2019". I would like to have those saved excel files have the same naming conventions as the .jcp files which have the same format look like this, MVR0128.jcp. Would also be great if I can run the excel VBA once a week and only copies the files from my first folder that are not include in the second folder.

    I really appreciate everyones help on this.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,811

    Re: Loop through all files in a folder with a specific file extension and save in excel

    OP has posted this same request in Commercial Services. I am closing this as it creates a duplicate posting. Please read our forum rules and pay particular attention to the rules regarding duplicates.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can't save XLSX file to specific folder on Mac (Excel 2011)
    By mcomp72 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2019, 10:34 PM
  2. [SOLVED] Copy files of a certain file name length, extension & modification date to another folder
    By JET2011 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-25-2018, 02:38 PM
  3. Loop through folder with txt files, import them and save as xls file
    By maym in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-06-2017, 02:45 AM
  4. How to Rename the files extension in a Specific Folder
    By Kandavalli.Kiran in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 04-26-2015, 08:36 AM
  5. Replies: 1
    Last Post: 10-18-2014, 05:04 PM
  6. Automatically make new excel-files (and save in specific folder on my computer)
    By Josvanderwaaij in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-21-2014, 06:32 AM
  7. [SOLVED] Loop through multiple files, run macro, then save as Excel workbook in a different folder
    By Peter Kallio in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-26-2013, 11:42 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