+ Reply to Thread
Results 1 to 4 of 4

Get the last weeknum with DateSerial in Excel VBA

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Get the last weeknum with DateSerial in Excel VBA

    Hello Guys,

    How can I get the last weeknum using the below example:

    Please Login or Register  to view this content.
    With the above example, I am getting the weeknum 14(which is the current week), but I need to get the weeknum 13 (from date March 22 to 28, 2015).


    Thanks!!

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Get the last weeknum with DateSerial in Excel VBA

    Add a -1

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Re: Get the last weeknum with DateSerial in Excel VBA

    Thanks a lot John!!

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Get the last weeknum with DateSerial in Excel VBA

    You're welcome. Glad to help out and thanks for the feedback.

+ 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. [SOLVED] Get the last date(last day) of the month with Excel VBA DateSerial
    By trizzo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-27-2015, 03:16 PM
  2. Question about dateserial
    By labogola in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2014, 09:31 AM
  3. DateSerial
    By h_aesa1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2010, 04:14 PM
  4. [SOLVED] Remove Holidays as DateSerial using Case
    By David in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-19-2006, 10:05 PM
  5. Re: Time/DateSerial Numeric Value
    By Jay in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-16-2005, 12:06 AM

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