+ Reply to Thread
Results 1 to 3 of 3

VBA file save as folder based on date

  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    71

    VBA file save as folder based on date

    Good morning everyone,

    My mind is a little boggled lately and I'm having troubles narrowing down my VBA. I would like to save a daily file to a specific folder based on the date of the file. Every daily file gets saved in "D:\Daily Reports\" but there are sub folders for each year (NB 2014 Daily Reports, NB 2015 Daily Reports, etc) and then each year folder has a sub folder of "1-January" through "12-December". The month numbers are so the folders are sorted chronologically when you open the main folder. I am using a userform to grab the date in d/m/y format, is there a way to pull the year and month from that (textbox name="NewDate") and have it save the workbook with filename "MMDDYYYY DR.xlsm"? For example, today's report would be "D:\Daily Reports\NB 2015 Daily Reports\6-June\06122015 DR.xlsm". And a side note, I would like to keep it so the dialog box opens and the user can confirm where it is saving and so that they can also see if the filename already exists. Too many non-computer abled people will be using this file and I don't want old files overwritten on accident!

    Thank you!

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    08-14-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: VBA file save as folder based on date

    bump, any suggestions?

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: VBA file save as folder based on date

    Still no replies, still need help. Thank you!

+ 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. Need help with code to save file in a folder location based on a cell value
    By msantucci in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2015, 05:56 PM
  2. [SOLVED] Macro to save file each day to specific folder with date in name
    By sjhf in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2013, 03:24 PM
  3. [SOLVED] Macro to Save File to Location Folder Based on Date in Cell
    By John_Day83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2013, 05:34 PM
  4. Create Folder with system date then save file to folder
    By cartotech81 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2009, 02:12 PM
  5. Save spreadsheet into folder based on today's Date?
    By nbaj2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2006, 11:40 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