LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,123
Default Insert calender

This is a bug in the control
If you play a lot with your zoom this is a problem

If you want to change it one time
Delete the control
Save the workbook
Change zoom
Add the control
Save the workbook

--

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


"ArcticWolf" wrote in message ...
Thanks Ron. Works perfect.

One last thing, any idea how to keep it from 'cropping' when you zoom to 75%.

Thanks,

Peter

"Ron de Bruin" wrote:

Try this one

Private Sub Calendar1_Click()
If ActiveCell.Column = 2 Then
If ActiveCell.Offset(0, -1).Value < "" Then
If ActiveCell.Offset(0, -1).Value CDbl(Calendar1.Value) Then
MsgBox "Please select another date"
Else
ActiveCell.Value = CDbl(Calendar1.Value)
ActiveCell.NumberFormat = "mm/dd/yyyy"
ActiveCell.Select
End If
Else
MsgBox "Please Add a date in column a first"
End If
Else
ActiveCell.Value = CDbl(Calendar1.Value)
ActiveCell.NumberFormat = "mm/dd/yyyy"
ActiveCell.Select
End If
End Sub


--

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


"ArcticWolf" wrote in message ...
Hi Ron,

Thanks for getting back to me so prompt.

I use column a for the "Order Recieved Date" and column B for "Order Sent
Date." So it's two calendars really. I originally used the code across both
cells (as I wanted the calendar in both) which worked great but I was able to
enter a date in B that was less than A. So date in calendar B = date in
calendar A.

Also, when I click on cell and reduce zoom it doesn't keep all of the
calendar (it trims it) but only a part of it. Is is possible to see the
whole of it even when zooming?

Many thanks,

AW

"Ron de Bruin" wrote:

Bad example from me (not tested good)

Do you use two cells or do you use
column A and B with this code

Let me know and I change the code and test it this time <g

--

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


"Ron de Bruin" wrote in message ...
Hi ArcticWolf

Try this

Private Sub Calendar1_Click()
If Range("A1").Value CDbl(Calendar1.Value) Then
MsgBox "Please select another date"
Else
ActiveCell.Value = CDbl(Calendar1.Value)
ActiveCell.NumberFormat = "mm/dd/yyyy"
ActiveCell.Select
End If
End Sub



--

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


"ArcticWolf" wrote in message
...
Hi Ron,

Thanks for posting this - very useful. I've put it into my sheet and it
works perfect :)

I wonder if you could help modify it slightly for my needs please?

I have the calendar pop-up when a cell in column A (Date Order Received) is
selected.
In column B I need the user to put another date in (Date Order Shipped - and
I have used your calendar again) HOWEVER - this time (in B) I need some
'intelligence' so that the user cannot select a date which is less than the
date in A. B will always be = A. Is there a way to modify the code so
column B doesn't return an earlier date than A?

Thanks in advance,

AW

"Ron de Bruin" wrote:

Hi Tinee

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


--

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


"Tinee" wrote in message ...
How do I select dates without typing a look up list. Can a calender be
embedded into a worksheet in two cells. ie a list with to & from dates.





 
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
calender S S Excel Worksheet Functions 1 July 26th 07 11:57 PM
Calender Antney Excel Discussion (Misc queries) 0 December 11th 06 10:42 PM
CALENDER smickParisTX Excel Discussion (Misc queries) 0 January 19th 06 06:19 PM
Marketing Calender MIVELD Excel Discussion (Misc queries) 0 November 28th 05 11:47 AM
Calender Help Alexanderj Excel Worksheet Functions 3 November 10th 05 02:10 PM


All times are GMT +1. The time now is 04:12 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"