+ Reply to Thread
Results 1 to 4 of 4

Macro that change filname i series if one already exists

Hybrid View

  1. #1
    Registered User
    Join Date
    05-20-2013
    Location
    Uppsala Sweden
    MS-Off Ver
    Excel 2010
    Posts
    24

    Macro that change filname i series if one already exists

    Hello

    I want to make a macro thats changes the filename if the filname alredy exists.

    For example

    The first time i run the makro the excelfile should be saved and named "BO1_Anders" and the next file should be named "BO2_Anders" and futher on like that... Alles klar?

    Is it possible?

    My english is not top of the line, and I am a amature, but I hope someone understands, I will be greatful!

    Have an nice day

  2. #2
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Macro that change filname i series if one already exists

    Hi,

    Just an idea.. I assume you have this file as a template and then you want to save them as new file with unique name. I have two choices
    1. you have one file as database for running number and retrieve the running number to be used as file name
    2. you have some cell in the workbook that can identify the unique number and use this for saving new file name

    here is one useful method you may follow or modify
    http://blogs.office.com/b/microsoft-...-in-excel.aspx

  3. #3
    Registered User
    Join Date
    05-20-2013
    Location
    Uppsala Sweden
    MS-Off Ver
    Excel 2010
    Posts
    24

    Thumbs up Re: Macro that change filname i series if one already exists

    Thank you Mr!

    I will try the nr 2 choise. It was a good link. Now I think I can get it to work! Once again Thanks a lot!

  4. #4
    Forum Contributor
    Join Date
    02-01-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: Macro that change filname i series if one already exists

    No problem, glad it fit you

+ 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