+ Reply to Thread
Results 1 to 3 of 3

Help with saving files based on month

  1. #1
    Registered User
    Join Date
    03-09-2017
    Location
    Monrovia
    MS-Off Ver
    2013
    Posts
    57

    Help with saving files based on month

    I have filenames in the format of File-2-Mar-17, File-10-Apr-17 and so on.
    • Is there a way where when I click save commandbutton, the workbook I am on gets saved as File-Mar or File-Apr? Here, I’ll only be selecting files corresponding to the similar month.
    • Secondly when I have files like File-Jan, File-Feb, File-Mar and I reconcile them (another macro runs here), when I click the save button could I have the file saved as File-Jan_Feb_Mar or File-Oct_Nov_Dec?

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Help with saving files based on month

    Sure, you can "construct" filename in a string variable (for instance concatenate parts of opened files names) and use the variable in SaveAs procedure
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    03-09-2017
    Location
    Monrovia
    MS-Off Ver
    2013
    Posts
    57

    Re: Help with saving files based on month

    Hi Kaper,

    I do know the standard SaveAs procedure. But in this case since I am using "Application.GetOpenFilename(filefilter:="Excel Files, *.xl*", MultiSelect:=True)" to select multiple files, I am at a loss on how it has to be performed?

+ 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. [SOLVED] Import txt Files into sheet based last month (name file)
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-16-2014, 08:38 AM
  2. [SOLVED] Determine work days in current month or next month based on day of the month
    By sbrnard in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-29-2014, 05:14 PM
  3. Saving xls files in folder to tabformated txt files
    By soli004 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-27-2012, 08:14 AM
  4. Replies: 1
    Last Post: 02-19-2010, 06:08 PM
  5. Saving Comma Separated .txt files as .csv files
    By twills in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-15-2009, 06:03 PM
  6. [SOLVED] Macro to create files based on month/year
    By Jon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2005, 04:25 PM
  7. Saving different files based upon data in particular column
    By DKY in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-06-2005, 11:27 AM

Tags for this Thread

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