Consulting

Results 1 to 7 of 7

Thread: Solved: Need reminder for previous day

  1. #1

    Solved: Need reminder for previous day

    Hi All..

    here i am looking for date reminder for current and previous day.
    here is the code for current day reminder. but don't know what to do reminder for previous day (YESTERDAY).

    any help or suggestion is most appreciated.

    ...Marc

    [VBA]Option Explicit
    Dim cl As Range

    Private Sub ListBox1_Click()
    Set cl = Sheet1.UsedRange.Find(Me.ListBox1.Value, LookIn:=xlValues)
    cl.Select
    End Sub

    Private Sub UserForm_Initialize()
    Dim rDates As Range

    Me.Caption = "appointments due: " & Format(Date, "long date")

    With Sheet1
    Set rDates = .Range(.Cells(3, 2), .Cells(.Rows.Count, 2).End(xlUp))
    End With

    For Each cl In rDates
    If cl.Value = Date Then Me.ListBox1.AddItem cl.Offset(0, -1).Value
    Next cl
    End Sub[/VBA]

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Welcome to VBAX
    I'm not clear what you're trying to do, but how about "Date -1"
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Hello Mr. Mdmackillop

    the above given code pop up the message for current due date i.e.: 11/08/2011.
    meantime i want to pop up the message for previous due date (overdue date), i.e. 11/07/2011.

    ...Marc

  4. #4
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Can you post a sample workbook. Use Manage Attachments in the Go Advanced reply section
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5

    Need reminder for previous day

    Hi..

    Please find attached file for your reference.

    ...Marc
    Attached Files Attached Files

  6. #6
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Maybe you can extract what you need from this
    Attached Files Attached Files
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  7. #7
    yes Sir...,

    This is what i want exactly....

    Thank you very much for your kind help..

    ...Marco

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •