+ Reply to Thread
Results 1 to 3 of 3

Renaming the files and exporting to a specified folder

  1. #1
    Registered User
    Join Date
    11-08-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    2

    Renaming the files and exporting to a specified folder

    Hi All,

    I work in back office team and I have to rename lot of files in a day and cut and paste them in relevant folders.
    I know little about VB programming but I am not a Pro.

    I need your help with a 2 part VB programming.

    1st part :

    The VBA macro/program should give me a option of inputting the location from where the macro/program will export all the files names and their types (e.g. xls, xlsx, doc, docx, jpeg, bmp, RAW, ppt, pptx, etc) to a excel sheet.

    Eg.
    If I store all the files (Excel, Images, Word docs, PPT, etc) in folder named "Week32" (Path: C:\Users\PeterW\Desktop\Week32\).
    So irrespective of the VBA macro/program location, it should ask me location from where I need to import the names and file types of all the files.
    I will put in (Path: C:\Users\PeterW\Desktop\Week32\) as input and run the above macro/program.
    The program should generate a output with names and file types of all files stored in (Path: C:\Users\PeterW\Desktop\Week32\).

    2nd part
    I will copy the output from above macro/program and provide the relevant file namesand export destination against each of them.
    Once I run the 2nd part of macro/program, it should rename the corresponding files and send them to specified folders.

    Eg.

    Untitled.png

    PS: The file type should not change while giving a new name
    Plz help !!!
    Last edited by Peter987; 11-09-2014 at 07:25 AM. Reason: Additional info

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Renaming the files and exporting to a specified folder

    Hi..

    So let me get this straight... you are going to manually enter the value sin the "New Name" column for each file?

    Also.. Regarding the Destination Folder.. how do you want to enter that..? manually type it.. or.. probably something better imo like Browse dialogue opens on double click event of the cell in the "Destination folder" column..

    The selection User makes would get inserted into the cell User double clicked on..

    or.. if you only have a few different Folders you might choose form.. have Data Validation list dropdowns in that column..

  3. #3
    Registered User
    Join Date
    11-08-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    2

    Re: Renaming the files and exporting to a specified folder

    Quote Originally Posted by apo View Post
    Hi..

    So let me get this straight... you are going to manually enter the value sin the "New Name" column for each file?

    Also.. Regarding the Destination Folder.. how do you want to enter that..? manually type it.. or.. probably something better imo like Browse dialogue opens on double click event of the cell in the "Destination folder" column..

    The selection User makes would get inserted into the cell User double clicked on..

    or.. if you only have a few different Folders you might choose form.. have Data Validation list dropdowns in that column..
    Hi apo,

    Yes, I will be entering the values manually in the "New name" Column for each file depending on their file type.

    For destination folder, I will be entering it manually.

+ 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] Renaming WAV Files in a Folder
    By spiwere in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 06-19-2014, 11:40 AM
  2. Listing/Renaming Files in a folder from excel
    By Kelshaer in forum Excel Tips
    Replies: 4
    Last Post: 01-23-2013, 11:04 AM
  3. Merging excel files + renaming them with folder name + restructuring them
    By BohkAl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2011, 07:47 AM
  4. Renaming multiple files in a Folder
    By csmithee in forum Excel General
    Replies: 1
    Last Post: 06-11-2009, 02:36 PM
  5. Excel files replicating and renaming in a folder
    By hpum in forum Excel General
    Replies: 0
    Last Post: 07-21-2007, 09:23 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