+ Reply to Thread
Results 1 to 3 of 3

Vba to run some codes then save file to different filenames

  1. #1
    Registered User
    Join Date
    04-26-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2003 2007
    Posts
    69

    Vba to run some codes then save file to different filenames

    Hi all, thanks in advance

    I have a code to run on a file, then I need to save the file as "x_Sample_01.xlsb", then will run the code to this file again and save to another filename "x_Sample_02.xlsb",

    the filenames will be saved with the last 2 chr from 01~.., how can this be done

  2. #2
    Registered User
    Join Date
    04-26-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2003 2007
    Posts
    69

    Re: Vba to run some codes then save file to different filenames

    I have found this code, it do the tricks, but the first 9 file is saved as x_Sample_1.xlsb instead of x_Sample_01.xlsb, how to alter the code?

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Vba to run some codes then save file to different filenames

    Try to edit this part
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 06-03-2014, 12:53 PM
  2. Multiple .txt file import with filenames
    By luke2442 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-09-2012, 05:13 PM
  3. where can i find macro codes for various functions such print, save and save as
    By fellayaboy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2011, 02:06 AM
  4. Read filenames that are in a ZIP file
    By michaelw00d in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2010, 11:38 AM
  5. Replies: 9
    Last Post: 02-14-2009, 01:50 PM
  6. Importing Filenames and Other File Data into Excel
    By martin_b in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2005, 09:48 AM
  7. Catching duplicate filenames when renaming a file
    By General in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2005, 02:06 AM

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