Results 1 to 4 of 4

Thread: Calendar controll question.....

  1. #1

    Thread Starter
    Addicted Member Smie's Avatar
    Join Date
    Jun 1999
    Location
    Columbus, OH
    Posts
    249

    Post

    Is there A way I can place text on a certain day, and if so, is there a way i can set every sunday to contain the same text? Like the same thing happens every sunday, and have the day say that? I appreciate any help.

  2. #2

    Thread Starter
    Addicted Member Smie's Avatar
    Join Date
    Jun 1999
    Location
    Columbus, OH
    Posts
    249

    Post

    Thanks a lot!

  3. #3
    Member
    Join Date
    Dec 1999
    Location
    Vilnius, Lithuania
    Posts
    50

    Post

    Yes there is a way

    [This message has been edited by casparas (edited 01-09-2000).]

  4. #4
    Member
    Join Date
    Dec 1999
    Location
    Vilnius, Lithuania
    Posts
    50

    Post

    you'll need

    1 textbox
    1 calendar

    Code:
    Private Sub Calendar1_Click()
    
    dayoftheweek = Weekday(Calendar1.Value, firstdayofweek = vbSunday)
    
      If dayoftheweek = 7 Then
        Text1 = "you have chosen the sunday"
    
        End If
    
    End Sub

Posting Permissions

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



Click Here to Expand Forum to Full Width