Results 1 to 10 of 27

Thread: Save Workbook File With The Next Incrementing Version Number Index

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Member
    Join Date
    Nov 2012
    Posts
    47
    Rep Power
    0
    Something is wrong in the code at the picture that I attach opened for the second time the original file "Ivan Ivanov" and when I press tells me that there is already such a file, and if I want to replace it, but it should save it as "Ivan Ivanov-0002".
    Ie my idea is every time I open the original file and pressed the button to save the same name but with a number up (one number up) -> Ivan Ivanov-0001, a second file to be - Ivan Ivanov-0002, a third - ivan Ivanov-0003 and so every time. Not like now to save on old Ivan Ivanov-0001.


    Screen_05 Jul. 14 22.30.jpg


    The second macro that offered me gives me an error like "mish mash" in this line:

    Code:
     If Mid(strFile, Len(strName) + 1, 1) = "-" And CSng(strSuffix) >= 0 And _
            InStr(1, strSuffix, ",") = 0 And InStr(1, strSuffix, ".") = 0 Then
    And another thing if the file is (.xls), then the code itself should only change this -> ".xlsm" on ".xls"
    Last edited by k0st4din; 07-15-2013 at 12:55 AM.

Similar Threads

  1. Replies: 4
    Last Post: 06-20-2013, 04:25 PM
  2. Replies: 7
    Last Post: 04-21-2013, 07:50 PM
  3. How To Save Macro To Personal Workbook
    By NITIN SHETTY in forum Excel Help
    Replies: 1
    Last Post: 04-07-2013, 01:07 PM
  4. Copy Sheets To New Workbook And Save
    By Prabhu in forum Excel Help
    Replies: 5
    Last Post: 09-06-2011, 09:35 PM
  5. Replies: 1
    Last Post: 06-02-2011, 10:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •