+ Reply to Thread
Results 1 to 2 of 2

Saving file in a date specific location

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    41

    Saving file in a date specific location

    Hi,

    I have a data file in which cell A1 has date in mm/dd/yyyy format .

    I want a macro which will save that document as xls file in a folder specific to that day.
    Basically want to create folder and then save in the same .location is c:/data/

    For example if date is 06/15/2013

    Then it shoudl make folder 2013 in data folder . Then subdirectory named june in 2013 and then make date folder and save in it.
    So the path will be c:/data/2013/june/15.

    Thanks in advanced ,
    Mayur

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,193

    Re: Saving file in a date specific location

    Hi, mayurpatil,

    as you marked this thread as solved you should pass yoir solution as it may be of interest for other users.

    Have a look at MkDir for a recursive use of making directories. Or maybe use API like
    Please Login or Register  to view this content.
    Code goes into a normal module and could be called like
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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