Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Calendar Issue - Out of Memery

Hi

I'm using the Calender Tool as shown in
http://www.fontstuff.com/vba/vbatut07.htm with the changes applied as shown
below by Rick Rothstein (MVP - VB).

The problem is that after using this for severeal month I now gets an error
when trying to use the function:

System Error &H8007007E (-214024770) and here after a 'Runtime error 7: Out
of memory. And once again the first error where after Excel Craches.

I VBA editor I can's show the form but code view is ok. If I try to "view
object" I get the first error above and afterwards Out of Memory.

Any help out there?
----------------------------------

RICK change
I took a quick look at the link you provided. I believe you can follow all
directions shown and you can use the MonthView control in place of the
Calendar control shown there; HOWEVER, you need to make these minor
modification in order for everything to work. First, after placing the
MonthView control on the form, rename it to Calendar1; that way, you can use
the code exactly as written. Second, the MonthView control does not have a
Click event; rather, it has a DateClick event. So, you will have to change
this procedure header used in the code from the link you provided...

Private Sub Calendar1_Click()

to this instead...

Private Sub Calendar1_DateClick(ByVal DateClicked As Date)

Making the two indicated changes above should (remember, I didn't test it)
allow you to use the rest of the code/implementation exactly as described in
the text at that link. Just so you know, the size of the MonthView control
is set by the size of the font, not by dragging the sizing handles. So, to
resize it, use the Font property from the Properties window.

Rick

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Calendar Issue - Out of Memery

I forgot to ad that if I try to add a new form in VBA editor I get the
following message: "ActiveX control 'Forms.Form' not referenced in this
project. Use Project/Components... to add a reference." Tryed the Help issue,
but can't understand what to do...

Don't know if this is to any help

"Steen" wrote:

Hi

I'm using the Calender Tool as shown in
http://www.fontstuff.com/vba/vbatut07.htm with the changes applied as shown
below by Rick Rothstein (MVP - VB).

The problem is that after using this for severeal month I now gets an error
when trying to use the function:

System Error &H8007007E (-214024770) and here after a 'Runtime error 7: Out
of memory. And once again the first error where after Excel Craches.

I VBA editor I can's show the form but code view is ok. If I try to "view
object" I get the first error above and afterwards Out of Memory.

Any help out there?
----------------------------------

RICK change
I took a quick look at the link you provided. I believe you can follow all
directions shown and you can use the MonthView control in place of the
Calendar control shown there; HOWEVER, you need to make these minor
modification in order for everything to work. First, after placing the
MonthView control on the form, rename it to Calendar1; that way, you can use
the code exactly as written. Second, the MonthView control does not have a
Click event; rather, it has a DateClick event. So, you will have to change
this procedure header used in the code from the link you provided...

Private Sub Calendar1_Click()

to this instead...

Private Sub Calendar1_DateClick(ByVal DateClicked As Date)

Making the two indicated changes above should (remember, I didn't test it)
allow you to use the rest of the code/implementation exactly as described in
the text at that link. Just so you know, the size of the MonthView control
is set by the size of the font, not by dragging the sizing handles. So, to
resize it, use the Font property from the Properties window.

Rick

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
Calendar Pop up issue Gav123 Excel Programming 2 April 12th 07 01:10 PM
Calendar issue cjtj4700 Excel Discussion (Misc queries) 2 January 6th 06 08:21 PM
Calendar conrtol issue Jim Carlock[_3_] Excel Programming 0 August 10th 04 01:28 AM
Calendar conrtol issue Don Guillett[_4_] Excel Programming 0 August 8th 04 11:47 PM
Calendar conrtol issue RB Smissaert Excel Programming 2 August 8th 04 06:18 PM


All times are GMT +1. The time now is 09:51 PM.

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"