+ Reply to Thread
Results 1 to 4 of 4

Rename file and Create new file with new folder with macro/vba

  1. #1
    Registered User
    Join Date
    12-10-2011
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Rename file and Create new file with new folder with macro/vba

    hi,

    I want to rename a file in collumn A to a new file with new folder. This column already represent the actualy file on the hardisk.
    column A ----> Output
    D:\01#j.txt --> D:\01\001.txt
    D:\01#x.txt --> D:\01\002.txt
    D:\02#b.txt --> D:\02\001.txt
    D:\03#a.txt --> D:\03\001.txt
    D:\03#b.txt --> D:\03\002.txt
    D:\03#g.txt --> D:\03\003.txt
    ...

    Output : making new folder exactly as i mention above.
    1. the folder represent the first name of the filename
    2. the namefile is a counter of how many firstname on the original filename.

    thanks in advance...
    Last edited by rizki96; 12-10-2011 at 07:15 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Rename file and Create new file with new folder with macro/vba

    So what is the issue you are facing?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    12-10-2011
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Rename file and Create new file with new folder with macro/vba

    hi arlette,

    can you help about the code. I read several thread, but no one can have similiar problem with me. I just want to have the output in folders that i mention before.
    Many thanks...

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Rename file and Create new file with new folder with macro/vba

    I am still not able to understand your issue. Do you want the text to be renamed in your file or do you want blank files to be renamed with the data in column B?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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