+ Reply to Thread
Results 1 to 3 of 3

Define Variable as Current Date minus 7

  1. #1
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Ventura, united States
    MS-Off Ver
    Excel 2010
    Posts
    346

    Define Variable as Current Date minus 7

    I want to define my variable as 1 week ago today. The lower macro runs but I have to use an extra variable "c" to subtract the days. I want to skip this step but it errors if I don't use 2 variables.

    Please Login or Register  to view this content.
    End Sub

  2. #2
    Forum Contributor
    Join Date
    09-25-2012
    Location
    Ventura, united States
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Define Variable as Current Date minus 7

    This is the entirety of what I'm trying to do which is now bugging.

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Define Variable as Current Date minus 7

    Why not put TODAY()-7 in the formula?
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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