+ Reply to Thread
Results 1 to 6 of 6

saving file to Month folder as per date after email is sent & also making few cells blank

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Question saving file to Month folder as per date after email is sent & also making few cells blank

    Please Login or Register  to view this content.
    I have two issues:
    1. I want the file in PDF saved in appropriate Month folder as per the date.
    Please refer to RED highlighted text.

    Secondly

    After all the above actions are completed, I want following cells to be cleared or say made blank.
    Sheet3
    Cells: G9, D11:E31, F22:F24, D33, G11 and F14:F19

    I am not sure How do I modify the code to include this.

    Need help please.

    Regards

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

    Re: saving file to Month folder as per date after email is sent & also making few cells bl

    Hi, KK1234,

    actual date or value from the worksheet?
    Please Login or Register  to view this content.
    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

  3. #3
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: saving file to Month folder as per date after email is sent & also making few cells bl

    Thanks HaHoBe,
    I will now incorporate this and will get back to you.
    One question.
    In a folder where it file is saved, Do I Name folders like ' Jan' , 'Feb' 'Mar' or I have to name them in certain way??

    Sorry basic, but I need to get some clarification.
    You are a real star to help me so promptly when I badly need it.
    Thanks again

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: saving file to Month folder as per date after email is sent & also making few cells bl

    Hi, KK1234,

    it depends upon what abbreviation you take. If itīs MM it will be displayed as 09 and might suppress the leading 0 (thatīs why I usually take the year first and follow that with the month), if itīs MMM it would mean Sep for the month running and depending on the local system. You would need to elaborate if the folders already exist or need to be created.

    If you refer to a different system you would need some help to find out in which folder the file needs to be saved (this help could be an array holding your folder names in the order of the months) and getting the correct folder name from there.

    Ciao,
    Holger

  5. #5
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: saving file to Month folder as per date after email is sent & also making few cells bl

    Hi
    Thanks.
    I have saved as follows....my fpath..
    c:/ab/cd/Ed/ff/dg.....and now I want to state your code.
    I have opened folder as sep oct nov etc
    Any help please
    Regards

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: saving file to Month folder as per date after email is sent & also making few cells bl

    Hi, KK1234,

    if you work with windows the normal PathSeparator would be a backslash as opposed to the slash you show in your last post.

    From what I understand from the question:
    Please Login or Register  to view this content.
    Ciao,
    Holger

+ 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: 4
    Last Post: 09-09-2013, 05:06 AM
  2. Replies: 0
    Last Post: 10-10-2012, 03:51 AM
  3. Replies: 1
    Last Post: 03-21-2012, 01:20 PM
  4. Auto Saving File to Folder with Current Date
    By mengghee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2008, 05:50 PM
  5. Saving to a certain month folder
    By Stephen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2006, 12:50 PM

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