+ Reply to Thread
Results 1 to 3 of 3

Macro to Save File to Location Folder Based on Date in Cell

  1. #1
    Registered User
    Join Date
    07-24-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    20

    Macro to Save File to Location Folder Based on Date in Cell

    Hi All,

    I have a macro to save files to a specified location based on content of cells, one of which is a date.

    It would be great if the macro could look at the date and decide which year folder then which month folder to use.

    So we have a folder 'SCCP' then folders in years '2013' then folders in months 'Jan', etc.

    Lets assume "O1" shown below is '2013 07 01 Mon', I would like it to pick folder SCCP > 2013 > July then save as. The below Macro works great when saving just to Factory > Planning > SCCP > 2013. Obviously I do not want to be changing the macro every month to pick up the correct monthly folder.

    Can anyone help please?

    Please Login or Register  to view this content.
    Appreciated as always
    John

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Macro to Save File to Location Folder Based on Date in Cell

    Hi,

    assuming that this is your custom numberformat: yyyy mm dd ddd and the month folder are named with the abbreviation, not the whole month name

    Please Login or Register  to view this content.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    07-24-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Macro to Save File to Location Folder Based on Date in Cell

    Cheers tehneXus!!!

    That worked an absolute treat thank you for your time & knowledge.

    John

+ 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