Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert calender into a cell


hi
i what to know

- "how to insert the calender control in to a cell?"so that i will
avoid the hassle of manually entering the date
- Is it possible to extend this functionality to the entire column?
- Is it possible to create a look-up (with a drop box having list of
values)? to an individual cell.

thnkx frinds


--
Deepa7476
------------------------------------------------------------------------
Deepa7476's Profile: http://www.excelforum.com/member.php...o&userid=33106
View this thread: http://www.excelforum.com/showthread...hreadid=529142

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Insert calender into a cell

Ron de Bruin provides some sample code at his site:

http://www.rondebruin.nl/calendar.htm

For the lookup, look at Data=Validation and select the list option. For
more information, you can look at Debar Dalgleish's site:

http://www.contextures.com/tiptech.html

--
Regards,
Tom Ogilvy


"Deepa7476" wrote:


hi
i what to know

- "how to insert the calender control in to a cell?"so that i will
avoid the hassle of manually entering the date
- Is it possible to extend this functionality to the entire column?
- Is it possible to create a look-up (with a drop box having list of
values)? to an individual cell.

thnkx frinds


--
Deepa7476
------------------------------------------------------------------------
Deepa7476's Profile: http://www.excelforum.com/member.php...o&userid=33106
View this thread: http://www.excelforum.com/showthread...hreadid=529142


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert calender into a cell


Dear Tom
Thanks for the link
The link was a great help and the code works great and suits perfectly
to my requirement
The look up works fine now
thnx
Deepa


--
Deepa7476
------------------------------------------------------------------------
Deepa7476's Profile: http://www.excelforum.com/member.php...o&userid=33106
View this thread: http://www.excelforum.com/showthread...hreadid=529142

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert calender into a cell


After seeing this thread, i decided to test it out (I was seein
http://www.rondebruin.nl/calendar.htm)


PHP code
-------------------

Private Sub Calendar1_Click()
ActiveCell.Value = CDbl(Calendar1.Value)
ActiveCell.NumberFormat = "mm/dd/yyyy"
ActiveCell.Select
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Not Application.Intersect(Range("A1:A20"), Target) Is Nothing Then
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width
Calendar1.Top = Target.Top + Target.Height
Calendar1.Visible = True
' select Today's date in the Calendar
Calendar1.Value = Date
ElseIf Calendar1.Visible Then Calendar1.Visible = False
End If
End Su
-------------------


But when i click on a cell with range A1:A20, it gives me a run tim
error 424 on *"Calendar1.Left = Target.Left + Target.Width
Calendar1.Width"*

Why?

Tom Ogilvy Wrote:
Ron de Bruin provides some sample code at his site:

http://www.rondebruin.nl/calendar.htm

For the lookup, look at Data=Validation and select the list option.
For
more information, you can look at Debar Dalgleish's site:

http://www.contextures.com/tiptech.html

--
Regards,
Tom Ogilvy

[/color


--
Infinit
-----------------------------------------------------------------------
Infinity's Profile: http://www.excelforum.com/member.php...fo&userid=3272
View this thread: http://www.excelforum.com/showthread.php?threadid=52914

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert calender into a cell


hi
i cross cheked my code with that u have posted..
its the same
and its working perfectly well for me
the calender is displyed between A1-A20 and the value take
accordingly

sorry i couldnt be of help
good luck
Deep

--
Deepa747
-----------------------------------------------------------------------
Deepa7476's Profile: http://www.excelforum.com/member.php...fo&userid=3310
View this thread: http://www.excelforum.com/showthread.php?threadid=52914



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Insert calender into a cell

Hi Infinity

Is the name of the Calendar control on your sheet Calendar1?


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Infinity" wrote in message
...

After seeing this thread, i decided to test it out (I was seeing
http://www.rondebruin.nl/calendar.htm)


Formula:
--------------------

Private Sub Calendar1_Click()
ActiveCell.Value = CDbl(Calendar1.Value)
ActiveCell.NumberFormat = "mm/dd/yyyy"
ActiveCell.Select
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Not Application.Intersect(Range("A1:A20"), Target) Is Nothing Then
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width
Calendar1.Top = Target.Top + Target.Height
Calendar1.Visible = True
' select Today's date in the Calendar
Calendar1.Value = Date
ElseIf Calendar1.Visible Then Calendar1.Visible = False
End If
End Sub
--------------------


But when i click on a cell with range A1:A20, it gives me a run time
error 424 on *"Calendar1.Left = Target.Left + Target.Width -
Calendar1.Width"*

Why?

Tom Ogilvy Wrote:
Ron de Bruin provides some sample code at his site:

http://www.rondebruin.nl/calendar.htm

For the lookup, look at Data=Validation and select the list option.
For
more information, you can look at Debar Dalgleish's site:

http://www.contextures.com/tiptech.html

--
Regards,
Tom Ogilvy




--
Infinity
------------------------------------------------------------------------
Infinity's Profile: http://www.excelforum.com/member.php...o&userid=32725
View this thread: http://www.excelforum.com/showthread...hreadid=529142
[/color]


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert calender into a cell


Hi Ron, what do you mean by that?


Ron de Bruin Wrote:
Hi Infinity

Is the name of the Calendar control on your sheet Calendar1?


--
Regards Ron de Bruin
http://www.rondebruin.nl



--
Infinit
-----------------------------------------------------------------------
Infinity's Profile: http://www.excelforum.com/member.php...fo&userid=3272
View this thread: http://www.excelforum.com/showthread.php?threadid=52914

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert calender into a cell


Ok i know why, I didnt insert-object to place a calendar control

how do i do this? I have already install the addin.


--
Infinity
------------------------------------------------------------------------
Infinity's Profile: http://www.excelforum.com/member.php...o&userid=32725
View this thread: http://www.excelforum.com/showthread...hreadid=529142

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Insert calender into a cell


Dang.... Is it because i need access?


--
Infinity
------------------------------------------------------------------------
Infinity's Profile: http://www.excelforum.com/member.php...o&userid=32725
View this thread: http://www.excelforum.com/showthread...hreadid=529142

  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Insert calender into a cell

Read the webpage

Use Insert-Object on the Worksheet Menu Bar to place a Calendar control on your sheet.
It is possible you don't see it in the list, because it is installed with Access.
So if you don't have that program installed you possible don't have the control.
You can download it on the website on the bottom of this page if you don't have it.

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Infinity" wrote in message
...

Dang.... Is it because i need access?


--
Infinity
------------------------------------------------------------------------
Infinity's Profile: http://www.excelforum.com/member.php...o&userid=32725
View this thread: http://www.excelforum.com/showthread...hreadid=529142





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
Insert an invisible calender only when you click cell in excel venus Excel Worksheet Functions 0 May 21st 10 03:56 PM
insert calender into excel Lewy Excel Discussion (Misc queries) 1 September 2nd 09 09:15 PM
can we map calender in to excel worksheet's cell. Anand Pasunoori Excel Discussion (Misc queries) 1 July 15th 09 05:44 PM
Insert calender Tinee Excel Worksheet Functions 8 February 25th 09 06:22 PM
Insert calender into a cell Deepa7476 Excel Programming 1 April 3rd 06 01:40 PM


All times are GMT +1. The time now is 11:43 AM.

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

About Us

"It's about Microsoft Excel"