+ Reply to Thread
Results 1 to 4 of 4

VBA SaveAs with Future Date appended to File Name

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    VBA SaveAs with Future Date appended to File Name

    Hello,

    I require help developing code to save a workbook created today for a business day / weekday at T+2. The file used to be saved as date format Now however the requirement has changed to name the file at T+2.

    Here is the code with the amended change to Date 2 but it doesn't work with the change:
    Please Login or Register  to view this content.

    Thank you for your attention.
    Cheers ~L.

  2. #2
    Registered User
    Join Date
    09-24-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: VBA SaveAs with Future Date appended to File Name

    Please Login or Register  to view this content.
    Last edited by jonnipeel; 09-24-2012 at 06:01 PM.

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: VBA SaveAs with Future Date appended to File Name

    Great thank you! Minor changes for format and correct to relable dDate as defined sDate.

    Cheers!

  4. #4
    Registered User
    Join Date
    06-11-2012
    Location
    British Columbia, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: VBA SaveAs with Future Date appended to File Name

    Hello again,

    I actually need the code to save as T+2 but when a weekend or longweekend occurs the save date should be the next business day. So for example the code saved today's report as 30Sept2012 when it should be 01Oct2012.

    Please help to structure for business days?
    Thank 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