+ Reply to Thread
Results 1 to 2 of 2

Can I create a dropdown that will show a 2-month calendar?

  1. #1
    Vecchia
    Guest

    Can I create a dropdown that will show a 2-month calendar?

    I would like to have a drop down that shows 2 months for the user to select a
    specific date. Is that possible?

  2. #2
    Registered User
    Join Date
    07-13-2005
    Posts
    15
    Can help you with one month drop-down .... not sure this is your answer ...

    Create a blank userform and place the DTPicker control as the only control (DTpicker may be on your controls TOOLBOX menu; if not right-click on the TOOLBOX select Additional Controls and locate DTpicker)

    you need to initialise the userform :

    Private sub Userform_Activate()
    Me.DTpicker.value = Date
    end sub


    and also set an event for the DTpicker control ( I have this set to record the selected date then hide the userform):

    Private Sub DTpicker1_Closup()
    Activecell = DTpicker.value
    UserForm1.hide
    End sub



    I have then a simple calling macro (triggered by a keyboard shortcut) that has a single line :

    Userform1.show

    - hit the shortcut to show the dialogbox, select the date and it is entered in the activecell;

    you could use the Calander control if you prefer the look but this is still one month only ...

    Don't know how to make this display 2 months together; any ideas anyone?
    Last edited by optionbase1; 07-18-2005 at 11:34 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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