PC Review


Reply
Thread Tools Rate Thread

add a dropdown calendar to a worksheet?

 
 
rongripon
Guest
Posts: n/a
 
      16th Dec 2007
I would like to use a simple method to add a dropdown calendar to a worksheet
--
RGGSR
 
Reply With Quote
 
 
 
 
Mike Fogleman
Guest
Posts: n/a
 
      16th Dec 2007
Here is some code I have in a worksheet module:

Private Sub Calendar1_Click()
ActiveCell.NumberFormat = "m/d/yyyy"
ActiveCell = Calendar1.Value
Calendar1.Visible = False
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Range("O6"), Target) Is Nothing Then
Calendar1.Left = Target.Left + Target.Width
Calendar1.Top = Target.Top + Target.Height
Calendar1.Value = Date
Calendar1.Visible = True
ElseIf Not Application.Intersect(Range("D2127"), Target) Is Nothing Then
Calendar1.Left = Target.Left + Target.Width
Calendar1.Top = Target.Top + Target.Height
Calendar1.Visible = True
Else
Calendar1.Visible = False
Exit Sub
End If
End Sub

Mike F
"rongripon" <(E-Mail Removed)> wrote in message
news:CBF74E90-79B7-4527-BB3F-(E-Mail Removed)...
>I would like to use a simple method to add a dropdown calendar to a
>worksheet
> --
> RGGSR



 
Reply With Quote
 
Nozza
Guest
Posts: n/a
 
      16th Dec 2007
On Sun, 16 Dec 2007 04:56:01 -0800, rongripon
<(E-Mail Removed)> wrote:

>I would like to use a simple method to add a dropdown calendar to a worksheet


http://my.opera.com/schnedster/blog/

has an example of this, plus a walkthrough of how to get it working.

Noz
--
Email (ROT13)
(E-Mail Removed)
 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      16th Dec 2007
See this page for more info
http://www.rondebruin.nl/calendar.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"rongripon" <(E-Mail Removed)> wrote in message news:CBF74E90-79B7-4527-BB3F-(E-Mail Removed)...
>I would like to use a simple method to add a dropdown calendar to a worksheet
> --
> RGGSR

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      16th Dec 2007
You can use this for a range with more areas Mike

Note: You can use this if your range is not one area
If Not Application.Intersect(Range("A1:A20,C1,E1"), Target) Is Nothing Then

See my webpage


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Mike Fogleman" <(E-Mail Removed)> wrote in message news:maednTv-(E-Mail Removed)...
> Here is some code I have in a worksheet module:
>
> Private Sub Calendar1_Click()
> ActiveCell.NumberFormat = "m/d/yyyy"
> ActiveCell = Calendar1.Value
> Calendar1.Visible = False
> End Sub
>
> Private Sub Worksheet_SelectionChange(ByVal Target As Range)
> If Not Application.Intersect(Range("O6"), Target) Is Nothing Then
> Calendar1.Left = Target.Left + Target.Width
> Calendar1.Top = Target.Top + Target.Height
> Calendar1.Value = Date
> Calendar1.Visible = True
> ElseIf Not Application.Intersect(Range("D2127"), Target) Is Nothing Then
> Calendar1.Left = Target.Left + Target.Width
> Calendar1.Top = Target.Top + Target.Height
> Calendar1.Visible = True
> Else
> Calendar1.Visible = False
> Exit Sub
> End If
> End Sub
>
> Mike F
> "rongripon" <(E-Mail Removed)> wrote in message
> news:CBF74E90-79B7-4527-BB3F-(E-Mail Removed)...
>>I would like to use a simple method to add a dropdown calendar to a
>>worksheet
>> --
>> RGGSR

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock worksheet, based on dropdown selection prior worksheet Michele Microsoft Excel New Users 9 21st Jun 2009 10:31 PM
Referencing a dropdown box on a worksheet Gene Microsoft Excel Misc 1 23rd Nov 2005 04:48 PM
Dropdown Box On Worksheet Rick Microsoft Excel Programming 3 11th May 2004 03:43 AM
2 worksheet and dropdown list David Microsoft Excel Worksheet Functions 12 22nd Feb 2004 03:14 PM
Building a dropdown from a worksheet Phillips Microsoft Excel Programming 0 20th Nov 2003 10:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:38 PM.