+ Reply to Thread
Results 1 to 5 of 5

Add Sunday date to file name

  1. #1
    Registered User
    Join Date
    02-04-2018
    Location
    Canberra, Australia
    MS-Off Ver
    2013
    Posts
    74

    Add Sunday date to file name

    Hi All,

    I'm trying to add last Sundays date to the end of the PDF file I save. The report is not always run on a Monday.

    My current code is


    Please Login or Register  to view this content.
    Thanks in advance

    Dean
    Last edited by DeanMcK; 03-04-2018 at 08:01 PM. Reason: Adding code tags to post

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Add Sunday date to file name

    Hi, Dean,

    Please take a few minutes to read the forum rules, and then edit your post to add CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-04-2018
    Location
    Canberra, Australia
    MS-Off Ver
    2013
    Posts
    74

    Re: Add Sunday date to file name

    Apologies - will remember for next time. I have also worked out what I need unless someone has better/easier code
    I added The Lsunday = code and added it to the file name.

    Please Login or Register  to view this content.

    Cheers

    Dean

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Add Sunday date to file name

    Thank you.

    That's about what I had:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-04-2018
    Location
    Canberra, Australia
    MS-Off Ver
    2013
    Posts
    74

    Re: Add Sunday date to file name

    Thanks SHG for your help - appreciated

+ 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. Display a date for the following Sunday based off of current date
    By LeapingLizard in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-19-2017, 02:37 PM
  2. Next Sunday date as file name - VB macro
    By get2guy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2017, 11:53 AM
  3. [SOLVED] calculate date but not sunday
    By daboho in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-17-2015, 02:56 AM
  4. move date to next Monday if date is on a Friday, Saturday or Sunday
    By ea223 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-24-2014, 01:54 PM
  5. Change date to the following Sunday
    By pilotwings64 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-26-2008, 06:34 PM
  6. Check to see if date is = to Sunday
    By Brian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2006, 10:25 PM
  7. [SOLVED] Check to see if date is = to Sunday
    By Brian in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2006, 10:00 PM

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