• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA Date Formula

Octofez2

New Member
Hello All,

First, thanks for checking this out! I have a basic formula used to get Saturday as a week ending date to use as a string for creating folders. When the code is used on a Saturday it does not detect the following Saturday. I would like to know if it's possible to tweak the below formula or something new, so if I run the code on a Saturday the code will utilize next Saturday's date?

Code:
        Dim dt As String
       
        dt = Format((Now() - Weekday(Now()) + 7), "mm-dd-yy")
 
Back
Top