+ Reply to Thread
Results 1 to 5 of 5

Macro to change file types

  1. #1
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299

    Macro to change file types

    Is there a macro that can change all the files in a location to .csv files.
    I am working on a macro that lets me open a file at a specific location it works, but I have to change the file type to .csv 1st. I was hoping the macro could do it for me.
    Here is some of the code and the location of the need to be .csv files:

    Please Login or Register  to view this content.
    So, I need code that will go to that path and change all files to .csv files before I go there with this string of code to open the desired files.
    Thank you very much for your time and help.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Erock24,

    I revised your macro to include the code needed to rename the file the user selects as a CSV file.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299
    I'm getting a large error message saying the file can't be found. It's run time 1004

    It highlights in yellow this:

    Please Login or Register  to view this content.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Erock24,

    Forgot to change that the last line. Should be...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  5. #5
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299
    Wow. that Works great thank you very much. awesome.

+ 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