Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
halina
 
Posts: n/a
Default ho do i insert calendar into xls worksheet


  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul B
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...



  #3   Report Post  
Posted to microsoft.public.excel.misc
neopolitan
 
Posts: n/a
Default ho do i insert calendar into xls worksheet


Try this site for a download. If you don't like this, then do a search
on the web for "Calendars in Excel".

http://www.vertex42.com/ExcelTemplat...-template.html


--
neopolitan


------------------------------------------------------------------------
neopolitan's Profile: http://www.excelforum.com/member.php...nfo&userid=611
View this thread: http://www.excelforum.com/showthread...hreadid=486902

  #4   Report Post  
Posted to microsoft.public.excel.misc
Adrian Cronauer
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Also:

http://www.dotxls.com/free-templates...2006-calendars

  #5   Report Post  
Posted to microsoft.public.excel.misc
Drahos
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...






  #6   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...






  #7   Report Post  
Posted to microsoft.public.excel.misc
Drahos
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...







  #8   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...









  #9   Report Post  
Posted to microsoft.public.excel.misc
Drahos
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...










  #10   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...














  #11   Report Post  
Posted to microsoft.public.excel.misc
Drahos
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...













  #12   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...















  #13   Report Post  
Posted to microsoft.public.excel.misc
Drahos
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Ron,

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...
















  #14   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

OK

My provider have server problems the last weeks so it is possible
that I can't read your mail today (sometimes a few hours)


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


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

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...


















  #15   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Drahos

Yes I see the same problem.

Workaround is to comment the event code in the sheet module before you change the size
If you are ready uncomment the code


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


"Ron de Bruin" wrote in message ...
OK

My provider have server problems the last weeks so it is possible
that I can't read your mail today (sometimes a few hours)


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


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

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...






















  #16   Report Post  
Posted to microsoft.public.excel.misc
Drahos
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Ron,

thanks for your kind help. The problem is that I have no idea what I am
supposed to do in the sheet module code. What "workaround" is to be
commented and in which event code. I am not an expert in Excel :o(

Please, can you explain in more details or wright an example.

Best Regards
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Yes I see the same problem.

Workaround is to comment the event code in the sheet module before you change the size
If you are ready uncomment the code


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


"Ron de Bruin" wrote in message ...
OK

My provider have server problems the last weeks so it is possible
that I can't read your mail today (sometimes a few hours)


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


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

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...





















  #17   Report Post  
Posted to microsoft.public.excel.misc
Drahos
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Dear Ron,
I have tried to experiment a little and I have found and I have done what
is necessary. Your advice and great support is amazing as usually.
Once again thanks a lot.
Have a nice time.

Regards Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Yes I see the same problem.

Workaround is to comment the event code in the sheet module before you change the size
If you are ready uncomment the code


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


"Ron de Bruin" wrote in message ...
OK

My provider have server problems the last weeks so it is possible
that I can't read your mail today (sometimes a few hours)


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


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

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...





















  #18   Report Post  
Posted to microsoft.public.excel.misc
Drahos
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Ron,

sorry I am to you. When I do what you have adviced at home it works. But if
I do it in the office I still have 2 Pop Up Calenders. At home I have Czech
XP Professional and Czech Office 2003. In the office I have Englich Version
of those two applications. I have not take the file from home to run it in
the office. But the home file has been originaly created in the office.

Do you have any idea?
Thanks a lot for your help.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Yes I see the same problem.

Workaround is to comment the event code in the sheet module before you change the size
If you are ready uncomment the code


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


"Ron de Bruin" wrote in message ...
OK

My provider have server problems the last weeks so it is possible
that I can't read your mail today (sometimes a few hours)


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


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

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...





















  #19   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Drahos

I have test it in a English version

Try it again

Note: if you are in the VBA
ViewToolbarsEdit

On the Edit toolbar you find the buttons to comment and uncomment the
selected code



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


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

sorry I am to you. When I do what you have adviced at home it works. But if
I do it in the office I still have 2 Pop Up Calenders. At home I have Czech
XP Professional and Czech Office 2003. In the office I have Englich Version
of those two applications. I have not take the file from home to run it in
the office. But the home file has been originaly created in the office.

Do you have any idea?
Thanks a lot for your help.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Yes I see the same problem.

Workaround is to comment the event code in the sheet module before you change the size
If you are ready uncomment the code


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


"Ron de Bruin" wrote in message ...
OK

My provider have server problems the last weeks so it is possible
that I can't read your mail today (sometimes a few hours)


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


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

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message
...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...























  #20   Report Post  
Posted to microsoft.public.excel.misc
Drahos
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Ron,
after some time I am back. I would like to thank you for your help. It is
strange but I have not been able to format the Calendar in the file we were
talking about. At the end I have solved the question of formatting the
Calendar in another way. I have formatted the Calendar Object in other
workbook and after that I have copied it to my workbook.

Ron, I would like to ask for your help again. The form we have been
discussing is a Single one. On the base of this Single form I have prepared a
MASS form. This is supposed to be used in cases when more than one change is
requested. In this MASS form is in one line/row all info which is on a Single
form.

The problem is that I have frozen panes on the level of 4th row. On the
2nd row in the cell M2 I need to input a date. The 3rd row's height is 40.
The problem is that the line of freezing after the 3rd row comes through the
Calendar and all dates under this freezing line are also frozen and it is
impossible to input them to the cell. In my case I am able to input only
dates from the first row in the Calendar.

Do you have an idea how to solve it? One possibility is not to use frozen
panes but I would like to have panes frozen and at the same time to be able
to input all dates from the Calendar.

Ron, thanks a lot for your help in advance.

Drahos.

"Ron de Bruin" wrote:

Hi Drahos

I have test it in a English version

Try it again

Note: if you are in the VBA
ViewToolbarsEdit

On the Edit toolbar you find the buttons to comment and uncomment the
selected code



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


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

sorry I am to you. When I do what you have adviced at home it works. But if
I do it in the office I still have 2 Pop Up Calenders. At home I have Czech
XP Professional and Czech Office 2003. In the office I have Englich Version
of those two applications. I have not take the file from home to run it in
the office. But the home file has been originaly created in the office.

Do you have any idea?
Thanks a lot for your help.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Yes I see the same problem.

Workaround is to comment the event code in the sheet module before you change the size
If you are ready uncomment the code


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


"Ron de Bruin" wrote in message ...
OK

My provider have server problems the last weeks so it is possible
that I can't read your mail today (sometimes a few hours)


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


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

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message ...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message
...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...


























  #21   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

I think I do this

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
If Target.Row < 4 Then
Calendar1.Top = Rows("4").Top
Else
Calendar1.Top = Target.Top + Target.Height
End If
Calendar1.Visible = True
' select Today's date in the Calendar
Calendar1.Value = Date
ElseIf Calendar1.Visible Then Calendar1.Visible = False
End If
End Sub


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


"Drahos" wrote in message ...
Hi Ron,
after some time I am back. I would like to thank you for your help. It is
strange but I have not been able to format the Calendar in the file we were
talking about. At the end I have solved the question of formatting the
Calendar in another way. I have formatted the Calendar Object in other
workbook and after that I have copied it to my workbook.

Ron, I would like to ask for your help again. The form we have been
discussing is a Single one. On the base of this Single form I have prepared a
MASS form. This is supposed to be used in cases when more than one change is
requested. In this MASS form is in one line/row all info which is on a Single
form.

The problem is that I have frozen panes on the level of 4th row. On the
2nd row in the cell M2 I need to input a date. The 3rd row's height is 40.
The problem is that the line of freezing after the 3rd row comes through the
Calendar and all dates under this freezing line are also frozen and it is
impossible to input them to the cell. In my case I am able to input only
dates from the first row in the Calendar.

Do you have an idea how to solve it? One possibility is not to use frozen
panes but I would like to have panes frozen and at the same time to be able
to input all dates from the Calendar.

Ron, thanks a lot for your help in advance.

Drahos.

"Ron de Bruin" wrote:

Hi Drahos

I have test it in a English version

Try it again

Note: if you are in the VBA
ViewToolbarsEdit

On the Edit toolbar you find the buttons to comment and uncomment the
selected code



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


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

sorry I am to you. When I do what you have adviced at home it works. But if
I do it in the office I still have 2 Pop Up Calenders. At home I have Czech
XP Professional and Czech Office 2003. In the office I have Englich Version
of those two applications. I have not take the file from home to run it in
the office. But the home file has been originaly created in the office.

Do you have any idea?
Thanks a lot for your help.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Yes I see the same problem.

Workaround is to comment the event code in the sheet module before you change the size
If you are ready uncomment the code


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


"Ron de Bruin" wrote in message ...
OK

My provider have server problems the last weeks so it is possible
that I can't read your mail today (sometimes a few hours)


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


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

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message
...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message
...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...


























  #22   Report Post  
Posted to microsoft.public.excel.misc
Drahos
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Hi Ron,

it works excelent. You are the best :o)

Thanks a lot.

Drahos.

"Ron de Bruin" wrote:

I think I do this

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
If Target.Row < 4 Then
Calendar1.Top = Rows("4").Top
Else
Calendar1.Top = Target.Top + Target.Height
End If
Calendar1.Visible = True
' select Today's date in the Calendar
Calendar1.Value = Date
ElseIf Calendar1.Visible Then Calendar1.Visible = False
End If
End Sub


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


"Drahos" wrote in message ...
Hi Ron,
after some time I am back. I would like to thank you for your help. It is
strange but I have not been able to format the Calendar in the file we were
talking about. At the end I have solved the question of formatting the
Calendar in another way. I have formatted the Calendar Object in other
workbook and after that I have copied it to my workbook.

Ron, I would like to ask for your help again. The form we have been
discussing is a Single one. On the base of this Single form I have prepared a
MASS form. This is supposed to be used in cases when more than one change is
requested. In this MASS form is in one line/row all info which is on a Single
form.

The problem is that I have frozen panes on the level of 4th row. On the
2nd row in the cell M2 I need to input a date. The 3rd row's height is 40.
The problem is that the line of freezing after the 3rd row comes through the
Calendar and all dates under this freezing line are also frozen and it is
impossible to input them to the cell. In my case I am able to input only
dates from the first row in the Calendar.

Do you have an idea how to solve it? One possibility is not to use frozen
panes but I would like to have panes frozen and at the same time to be able
to input all dates from the Calendar.

Ron, thanks a lot for your help in advance.

Drahos.

"Ron de Bruin" wrote:

Hi Drahos

I have test it in a English version

Try it again

Note: if you are in the VBA
ViewToolbarsEdit

On the Edit toolbar you find the buttons to comment and uncomment the
selected code



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


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

sorry I am to you. When I do what you have adviced at home it works. But if
I do it in the office I still have 2 Pop Up Calenders. At home I have Czech
XP Professional and Czech Office 2003. In the office I have Englich Version
of those two applications. I have not take the file from home to run it in
the office. But the home file has been originaly created in the office.

Do you have any idea?
Thanks a lot for your help.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Yes I see the same problem.

Workaround is to comment the event code in the sheet module before you change the size
If you are ready uncomment the code


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


"Ron de Bruin" wrote in message ...
OK

My provider have server problems the last weeks so it is possible
that I can't read your mail today (sometimes a few hours)


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


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

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message ...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message
...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message
...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...



























  #23   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

You are welcome


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


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

it works excelent. You are the best :o)

Thanks a lot.

Drahos.

"Ron de Bruin" wrote:

I think I do this

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
If Target.Row < 4 Then
Calendar1.Top = Rows("4").Top
Else
Calendar1.Top = Target.Top + Target.Height
End If
Calendar1.Visible = True
' select Today's date in the Calendar
Calendar1.Value = Date
ElseIf Calendar1.Visible Then Calendar1.Visible = False
End If
End Sub


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


"Drahos" wrote in message ...
Hi Ron,
after some time I am back. I would like to thank you for your help. It is
strange but I have not been able to format the Calendar in the file we were
talking about. At the end I have solved the question of formatting the
Calendar in another way. I have formatted the Calendar Object in other
workbook and after that I have copied it to my workbook.

Ron, I would like to ask for your help again. The form we have been
discussing is a Single one. On the base of this Single form I have prepared a
MASS form. This is supposed to be used in cases when more than one change is
requested. In this MASS form is in one line/row all info which is on a Single
form.

The problem is that I have frozen panes on the level of 4th row. On the
2nd row in the cell M2 I need to input a date. The 3rd row's height is 40.
The problem is that the line of freezing after the 3rd row comes through the
Calendar and all dates under this freezing line are also frozen and it is
impossible to input them to the cell. In my case I am able to input only
dates from the first row in the Calendar.

Do you have an idea how to solve it? One possibility is not to use frozen
panes but I would like to have panes frozen and at the same time to be able
to input all dates from the Calendar.

Ron, thanks a lot for your help in advance.

Drahos.

"Ron de Bruin" wrote:

Hi Drahos

I have test it in a English version

Try it again

Note: if you are in the VBA
ViewToolbarsEdit

On the Edit toolbar you find the buttons to comment and uncomment the
selected code



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


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

sorry I am to you. When I do what you have adviced at home it works. But if
I do it in the office I still have 2 Pop Up Calenders. At home I have Czech
XP Professional and Czech Office 2003. In the office I have Englich Version
of those two applications. I have not take the file from home to run it in
the office. But the home file has been originaly created in the office.

Do you have any idea?
Thanks a lot for your help.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Yes I see the same problem.

Workaround is to comment the event code in the sheet module before you change the size
If you are ready uncomment the code


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


"Ron de Bruin" wrote in message ...
OK

My provider have server problems the last weeks so it is possible
that I can't read your mail today (sometimes a few hours)


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


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

I have sent it to your emai address mentioned on your webside


Thanks a lot.

Drahos

"Ron de Bruin" wrote:

Hi Drahos

Can you send me a example workbook private to see this

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


"Drahos" wrote in message ...
Good morning Ron,

now, thanks to you calendar works perfectly. I would like to ask for your
help again. I hope last time concerning this issue.

I have a problem with a change of size of the calendar. If I change the
size of the calendar in a new empty sheet it works without any problem. But
if I do it in my Form after exiting the design mode the calendar is displaied
2x. One is in a requested size and the other is much smaller. The smaler one
is active. The calendar in requested size is behind the smaller one and is
inactive.
Do you have an idea what is wrong?

Thanks again in advance.
Drahos.


"Ron de Bruin" wrote:

You are welcome

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


"Drahos" wrote in message
...
Wow :o)
Ron, thank you to much.
Drahos.

"Ron de Bruin" wrote:

Hi Drahos

Change the Range

If Not Application.Intersect(Range("A1:A20,C1,C5,D20"), Target) Is Nothing Then



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


"Drahos" wrote in message
...
Hi Ron,
you are right. Thanks a lot. Now one more question. I need to have in my
form severel cells containing Calendar. The problem is these fields are not
in a continuous range but they are on very different places. How can I do
this. Now I am not sure but there should be about 8 cells containing calendar.

Regards
Drahos.


"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message
...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...





























  #24   Report Post  
Posted to microsoft.public.excel.misc
maperalia
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Ron;
I got the same error message that Drahos had.
What do you mean with "Maybe the Calendar you have add to the worksheet is
not named Calendar1". How and where can I change this name?

Thanks in advance.
Maperalia



"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...







  #25   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

hi maperalia

If you go in Edit mode (button on the control toolbox toolbar) and select the calendar you can see the name in the formulabar.
You can change it there also


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


"maperalia" wrote in message ...
Ron;
I got the same error message that Drahos had.
What do you mean with "Maybe the Calendar you have add to the worksheet is
not named Calendar1". How and where can I change this name?

Thanks in advance.
Maperalia



"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...











  #26   Report Post  
Posted to microsoft.public.excel.misc
maperalia
 
Posts: n/a
Default ho do i insert calendar into xls worksheet

Ron;
I got it. Thanks you very much!!!!!!!
I have found that you have been helping me in a lot of questions I have been
having in this wonderful site.
i really appreciatte you supporting in VBA.

Kind regards.
Maperalia

"Ron de Bruin" wrote:

hi maperalia

If you go in Edit mode (button on the control toolbox toolbar) and select the calendar you can see the name in the formulabar.
You can change it there also


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


"maperalia" wrote in message ...
Ron;
I got the same error message that Drahos had.
What do you mean with "Maybe the Calendar you have add to the worksheet is
not named Calendar1". How and where can I change this name?

Thanks in advance.
Maperalia



"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...










  #27   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 137
Default ho do i insert calendar into xls worksheet

Hi Ron,

Thanks for displaying the information on how to load a calendar.
I have a couple of questions if you can help please?

Is there a way of when you click on the cell the calendar pops up to only
select the date once via the mouse and the pop up calendar disappears rather
than you clicking enter or clicking on other cell?
Also I am having problems changing the date format to UK - I have changed
this in the format cells section, but it reverts back to US version for each
date selected? - Is there any way you can lock the format?

Thanks

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...







  #28   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default ho do i insert calendar into xls worksheet

Hi Darren

Which Excel version do you use ?
You have a protected sheet ?

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



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

Thanks for displaying the information on how to load a calendar.
I have a couple of questions if you can help please?

Is there a way of when you click on the cell the calendar pops up to only
select the date once via the mouse and the pop up calendar disappears rather
than you clicking enter or clicking on other cell?
Also I am having problems changing the date format to UK - I have changed
this in the format cells section, but it reverts back to US version for each
date selected? - Is there any way you can lock the format?

Thanks

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...









  #29   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 137
Default ho do i insert calendar into xls worksheet

Hi Ron,

It's 2003 version.
No, It's not protected - I have created a new sheet...

Thanks for looking into this....

regards

"Ron de Bruin" wrote:

Hi Darren

Which Excel version do you use ?
You have a protected sheet ?

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



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

Thanks for displaying the information on how to load a calendar.
I have a couple of questions if you can help please?

Is there a way of when you click on the cell the calendar pops up to only
select the date once via the mouse and the pop up calendar disappears rather
than you clicking enter or clicking on other cell?
Also I am having problems changing the date format to UK - I have changed
this in the format cells section, but it reverts back to US version for each
date selected? - Is there any way you can lock the format?

Thanks

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...










  #30   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 137
Default ho do i insert calendar into xls worksheet

Hi Ron,

Ignore my previous reply - I've managed to fix the problem of the date - i
didn't see the fomat within the code..
Thanks anyway

But do you know if there is a way of when you select the cell and a date,
just one click on the date to remove the calender rather than selecting
another cell or pressing enter and is there an icon you can use..? (pretty
much similar to a web based calendar form..?)

Thanks in advance..


"Ron de Bruin" wrote:

Hi Darren

Which Excel version do you use ?
You have a protected sheet ?

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



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

Thanks for displaying the information on how to load a calendar.
I have a couple of questions if you can help please?

Is there a way of when you click on the cell the calendar pops up to only
select the date once via the mouse and the pop up calendar disappears rather
than you clicking enter or clicking on other cell?
Also I am having problems changing the date format to UK - I have changed
this in the format cells section, but it reverts back to US version for each
date selected? - Is there any way you can lock the format?

Thanks

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...












  #31   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default ho do i insert calendar into xls worksheet

Hi Darren

You can use a macro and assign it to a button if you want
Delete the selection change event and use this in the sheet module

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


Copy this in a normal module

Sub Call_Calendar()
With Sheets("Sheet1")
If Not Application.Intersect(.Range("A1:A10"), ActiveCell) Is Nothing Then
.Calendar1.Left = ActiveCell.Left + ActiveCell.Width - .Calendar1.Width
.Calendar1.Top = ActiveCell.Top + ActiveCell.Height
.Calendar1.Visible = True
' select Today's date in the Calendar
.Calendar1.Value = Date
ElseIf .Calendar1.Visible Then .Calendar1.Visible = False
End If
End With
End Sub


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



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

Ignore my previous reply - I've managed to fix the problem of the date - i
didn't see the fomat within the code..
Thanks anyway

But do you know if there is a way of when you select the cell and a date,
just one click on the date to remove the calender rather than selecting
another cell or pressing enter and is there an icon you can use..? (pretty
much similar to a web based calendar form..?)

Thanks in advance..


"Ron de Bruin" wrote:

Hi Darren

Which Excel version do you use ?
You have a protected sheet ?

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



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

Thanks for displaying the information on how to load a calendar.
I have a couple of questions if you can help please?

Is there a way of when you click on the cell the calendar pops up to only
select the date once via the mouse and the pop up calendar disappears rather
than you clicking enter or clicking on other cell?
Also I am having problems changing the date format to UK - I have changed
this in the format cells section, but it reverts back to US version for each
date selected? - Is there any way you can lock the format?

Thanks

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...












  #32   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default ho do i insert calendar into xls worksheet

How do you tell what the calendar is named?

I tried just using calendar.... but that didn't work either.

I folled the instructions on this page:
http://www.fontstuff.com/vba/vbatut07.htm

& then I inserted this code on the sheet:

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
..

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...







  #33   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default ho do i insert calendar into xls worksheet

Hi

When you use the code from my page you only have to add the calendar to the worksheet
with Insert Object

Read the page again
http://www.rondebruin.nl/calendar.htm



--

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


"tmirelle" wrote in message ...
How do you tell what the calendar is named?

I tried just using calendar.... but that didn't work either.

I folled the instructions on this page:
http://www.fontstuff.com/vba/vbatut07.htm

& then I inserted this code on the sheet:

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
.

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...







  #34   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default ho do i insert calendar into xls worksheet

I am trying to get the calendar to pop up everytime you are in the date
column... to help the user get it in in the right format.

Is that possible?

"Ron de Bruin" wrote:

Hi

When you use the code from my page you only have to add the calendar to the worksheet
with Insert Object

Read the page again
http://www.rondebruin.nl/calendar.htm



--

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


"tmirelle" wrote in message ...
How do you tell what the calendar is named?

I tried just using calendar.... but that didn't work either.

I folled the instructions on this page:
http://www.fontstuff.com/vba/vbatut07.htm

& then I inserted this code on the sheet:

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
.

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...








  #35   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default ho do i insert calendar into xls worksheet

Change the range in the code to the range with your date cells

See also this note on my site

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


--

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


"tmirelle" wrote in message ...
I am trying to get the calendar to pop up everytime you are in the date
column... to help the user get it in in the right format.

Is that possible?

"Ron de Bruin" wrote:

Hi

When you use the code from my page you only have to add the calendar to the worksheet
with Insert Object

Read the page again
http://www.rondebruin.nl/calendar.htm



--

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


"tmirelle" wrote in message ...
How do you tell what the calendar is named?

I tried just using calendar.... but that didn't work either.

I folled the instructions on this page:
http://www.fontstuff.com/vba/vbatut07.htm

& then I inserted this code on the sheet:

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
.

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...










  #36   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default ho do i insert calendar into xls worksheet

Still won't work for me, I'm not sure how to identify the range (it's column A)

But clicking anywhere in the sheet after I have added your code to the
worksheet gives me error 424.

& highlights the line:

Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

I don't know what I am doing wrong.

"Ron de Bruin" wrote:

Change the range in the code to the range with your date cells

See also this note on my site

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


--

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


"tmirelle" wrote in message ...
I am trying to get the calendar to pop up everytime you are in the date
column... to help the user get it in in the right format.

Is that possible?

"Ron de Bruin" wrote:

Hi

When you use the code from my page you only have to add the calendar to the worksheet
with Insert Object

Read the page again
http://www.rondebruin.nl/calendar.htm



--

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


"tmirelle" wrote in message ...
How do you tell what the calendar is named?

I tried just using calendar.... but that didn't work either.

I folled the instructions on this page:
http://www.fontstuff.com/vba/vbatut07.htm

& then I inserted this code on the sheet:

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
.

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...









  #37   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default ho do i insert calendar into xls worksheet

Calendar1 is the name of your calendar

When you are in Edit mode you can see the name in the formulabar on the left
Be sure that it is named Calendar1


--

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


"tmirelle" wrote in message ...
Still won't work for me, I'm not sure how to identify the range (it's column A)

But clicking anywhere in the sheet after I have added your code to the
worksheet gives me error 424.

& highlights the line:

Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

I don't know what I am doing wrong.

"Ron de Bruin" wrote:

Change the range in the code to the range with your date cells

See also this note on my site

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


--

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


"tmirelle" wrote in message ...
I am trying to get the calendar to pop up everytime you are in the date
column... to help the user get it in in the right format.

Is that possible?

"Ron de Bruin" wrote:

Hi

When you use the code from my page you only have to add the calendar to the worksheet
with Insert Object

Read the page again
http://www.rondebruin.nl/calendar.htm



--

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


"tmirelle" wrote in message ...
How do you tell what the calendar is named?

I tried just using calendar.... but that didn't work either.

I folled the instructions on this page:
http://www.fontstuff.com/vba/vbatut07.htm

& then I inserted this code on the sheet:

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
.

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...









  #38   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default ho do i insert calendar into xls worksheet

Calendar1 is the name of your calendar

When you are in Edit mode you can see and edit the name in the formulabar on the left
Be sure that it is named Calendar1


--

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


"tmirelle" wrote in message ...
Still won't work for me, I'm not sure how to identify the range (it's column A)

But clicking anywhere in the sheet after I have added your code to the
worksheet gives me error 424.

& highlights the line:

Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

I don't know what I am doing wrong.

"Ron de Bruin" wrote:

Change the range in the code to the range with your date cells

See also this note on my site

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


--

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


"tmirelle" wrote in message ...
I am trying to get the calendar to pop up everytime you are in the date
column... to help the user get it in in the right format.

Is that possible?

"Ron de Bruin" wrote:

Hi

When you use the code from my page you only have to add the calendar to the worksheet
with Insert Object

Read the page again
http://www.rondebruin.nl/calendar.htm



--

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


"tmirelle" wrote in message ...
How do you tell what the calendar is named?

I tried just using calendar.... but that didn't work either.

I folled the instructions on this page:
http://www.fontstuff.com/vba/vbatut07.htm

& then I inserted this code on the sheet:

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
.

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...









  #39   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default ho do i insert calendar into xls worksheet

Thanks, but still no matter where I click in the sheet I get the same

error 424 & highlights the line:

Calendar1.Left = Target.Left + Target.Width - Calendar1.Width


"Ron de Bruin" wrote:

Calendar1 is the name of your calendar

When you are in Edit mode you can see and edit the name in the formulabar on the left
Be sure that it is named Calendar1


--

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


"tmirelle" wrote in message ...
Still won't work for me, I'm not sure how to identify the range (it's column A)

But clicking anywhere in the sheet after I have added your code to the
worksheet gives me error 424.

& highlights the line:

Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

I don't know what I am doing wrong.

"Ron de Bruin" wrote:

Change the range in the code to the range with your date cells

See also this note on my site

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


--

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


"tmirelle" wrote in message ...
I am trying to get the calendar to pop up everytime you are in the date
column... to help the user get it in in the right format.

Is that possible?

"Ron de Bruin" wrote:

Hi

When you use the code from my page you only have to add the calendar to the worksheet
with Insert Object

Read the page again
http://www.rondebruin.nl/calendar.htm



--

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


"tmirelle" wrote in message ...
How do you tell what the calendar is named?

I tried just using calendar.... but that didn't work either.

I folled the instructions on this page:
http://www.fontstuff.com/vba/vbatut07.htm

& then I inserted this code on the sheet:

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
.

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...










  #40   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default ho do i insert calendar into xls worksheet

Close Excel
Start Excel again and try the code from my site in a new workbook

--

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


"tmirelle" wrote in message ...
Thanks, but still no matter where I click in the sheet I get the same

error 424 & highlights the line:

Calendar1.Left = Target.Left + Target.Width - Calendar1.Width


"Ron de Bruin" wrote:

Calendar1 is the name of your calendar

When you are in Edit mode you can see and edit the name in the formulabar on the left
Be sure that it is named Calendar1


--

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


"tmirelle" wrote in message ...
Still won't work for me, I'm not sure how to identify the range (it's column A)

But clicking anywhere in the sheet after I have added your code to the
worksheet gives me error 424.

& highlights the line:

Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

I don't know what I am doing wrong.

"Ron de Bruin" wrote:

Change the range in the code to the range with your date cells

See also this note on my site

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


--

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


"tmirelle" wrote in message ...
I am trying to get the calendar to pop up everytime you are in the date
column... to help the user get it in in the right format.

Is that possible?

"Ron de Bruin" wrote:

Hi

When you use the code from my page you only have to add the calendar to the worksheet
with Insert Object

Read the page again
http://www.rondebruin.nl/calendar.htm



--

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


"tmirelle" wrote in message ...
How do you tell what the calendar is named?

I tried just using calendar.... but that didn't work either.

I folled the instructions on this page:
http://www.fontstuff.com/vba/vbatut07.htm

& then I inserted this code on the sheet:

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
.

"Ron de Bruin" wrote:

Hi Drahos

Maybe the Calendar you have add to the worksheet is not named
Calendar1

Check out the name

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


"Drahos" wrote in message ...
Hi Paul,
I need to use in my Excel Form a calender as described. I have done what
was recommeded on the webside you are reffering to. While choosing a cell
from the range where should be the calendar I receive the Runtime error "424"
- object required and the Debug shows this line:
Calendar1.Left = Target.Left + Target.Width - Calendar1.Width

If choosing a cell outside of the range I receive the same runtime error and
the Debug shows this line:

ElseIf Calendar1.Visible Then Calendar1.Visible = False

I use the Excel 2003.

Please, can you advice me what the problem is.
Thanks a lot.


"Paul B" wrote:

halina, here is one way,
http://www.rondebruin.nl/calendar.htm
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"halina" wrote in message
...











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
Search a worksheet, extract rows using a list from another sheet bobf Excel Discussion (Misc queries) 9 August 31st 05 04:56 AM
Insert a new worksheet after subtotal KReese Excel Worksheet Functions 1 July 20th 05 10:35 PM
Insert comment in protected worksheet The Tuner Excel Worksheet Functions 2 June 6th 05 11:38 PM
Insert worksheet is greyed out, is there an option to turn it on? jwolf Excel Worksheet Functions 1 May 9th 05 11:22 PM
Indirect reference from one worksheet to another Bill Sturdevant Excel Worksheet Functions 2 December 17th 04 01:23 PM


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