+ Reply to Thread
Results 1 to 3 of 3

Auto naming adds extra characters after file type rather than before

  1. #1
    Registered User
    Join Date
    05-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    41

    Auto naming adds extra characters after file type rather than before

    I have the following code:
    Please Login or Register  to view this content.
    it adds the text "ABC_" to the beginning of the name of the workbook I am getting ready to save. For organizational purposes, I decided it would be best to have the extra characters added after the name rather than before (ie Test_ABC.csv rather than ABC_Test.csv). I changed the code to the following:

    Please Login or Register  to view this content.
    However, this sets the name as Test.csv_ABC Is there any way to have the extra characters fall between the name and the file type?

    In different instances I'm told that my code will work fine so I'm attaching the actual spreadsheet that I am using so that you can see how it's happening in my specific instance. The only thing you have to do is open up the attachment Test.xlsx and save it as a .csv (this site wont let me upload it as a .csv since it's technically not one). Then open up ABC_Tool.xlsx and it will automatically run the macro. Use the macro to open up the Test.csv you saved and you'll see what I am talking about.

    Thanks. Any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by SinGin; 12-14-2010 at 10:21 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Auto naming adds extra characters after file type rather than before

    Maybe something like:

    Please Login or Register  to view this content.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Auto naming adds extra characters after file type rather than before

    Brilliant! Thanks so much!

+ 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