Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Vecchia
 
Posts: n/a
Default 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   Report Post  
optionbase1
 
Posts: n/a
Default


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?


--
optionbase1
------------------------------------------------------------------------
optionbase1's Profile: http://www.excelforum.com/member.php...o&userid=25212
View this thread: http://www.excelforum.com/showthread...hreadid=387993

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GETPIVOTDATA to create Purchase in specified month Andri Excel Worksheet Functions 5 February 20th 05 03:43 PM
create dropdown menu using Combo box Anthony Excel Worksheet Functions 1 January 29th 05 06:15 PM
create dropdown menu Anthony Excel Worksheet Functions 1 January 29th 05 01:30 PM
trying to create Lost in reconcillation Excel Discussion (Misc queries) 2 December 19th 04 01:05 AM
Pivot Table - Group by Month - Show Items with no data Dan Reynolds Excel Discussion (Misc queries) 0 November 28th 04 01:01 AM


All times are GMT +1. The time now is 04:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"