Results 1 to 7 of 7

Finding the weekend date of a particular date

Threaded View

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    14

    Post Finding the weekend date of a particular date

    Hello All,

    Could you please help me in find the weekend date of each dates.

    Im generating a report , for which i need to find the weekend date of the corresponding date.

    following is the code that im using to generate the dates. Please help me in generating the corresponding weekend date as well.

    also attached is the output file im lookg for.


    Thanks in advance

    
    Dim startdate As Date, enddate As Date, i As Integer
    startdate = ReportDate1.Value
    enddate = ReportDate2.Value
    i = 2
        While startdate <= enddate
        
        Sheets("sheet1").Range("E" & i) = startdate
        startdate = startdate + 1
        
        Sheets("Sheet1").Range("A" & i) = TextBox1.Text
        Sheets("Sheet1").Range("B" & i) = TextBox2.Text
        Sheets("Sheet1").Range("C" & i) = TextBox6.Text
        Sheets("Sheet1").Range("D" & i) = ComboBox1.Text
        i = i + 1
        Wend
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 24
    Last Post: 10-08-2014, 10:31 AM
  2. Finding File Creation date, saved date and last modified date
    By david systems in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2013, 05:49 PM
  3. [SOLVED] Determine last date of attendance as we considered weekend, public holiday and absent date
    By ashburnadam in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2012, 12:08 AM
  4. [SOLVED] Max Weekend Value, display date value was seen
    By johnjacob in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-25-2012, 10:36 AM
  5. How to Find Weekend date
    By Mike Metal in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-05-2005, 01: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