Consulting

Results 1 to 3 of 3

Thread: Calendar problem

  1. #1

    Calendar problem

    Hi,
    I have a sheet where I do some critical analysis on a form in excel 2007.
    Now I have used a calendar to insert date,
    and I have used this line to show the current date by default on the calandar
    [VBA]Calendar1.Value = Now()[/VBA]

    But is there a way to disable the selection of previous dates by default.

    also place another button on the form, which when clicked will ask for a password that will unlock the calendar to select previous dates.

    Please guide me,
    Thanks,
    Mac

  2. #2
    Any help...
    Regards,
    mac

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I am afraid I can't test what I am saying as I have 64 bit windows and so no calendar, but I would have thought that you cannot stop anyone from selecting on the calendar, so you would have to check after the value has been selected, and if already used, then reject that value and re-open the calendar.

    If you post the workbook and give us details on how to work through the situation you want to manage, I can fire up another box that does have a calendar and test it.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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