ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Calendar Control (https://www.excelbanter.com/excel-programming/368145-calendar-control.html)

Benz

Calendar Control
 
I just switched laptops, I went to create a new calendar in VB and under
Additional Tools I can not find the Calendar Control...... do I need to
re-download? if so where?

Thank You in advance for everyone who helps.

Duncan[_5_]

Calendar Control
 


Try this..

Dim x As Integer, y As Integer
Dim varRef As Variant
On Error Resume Next
For x = 20 To 0 Step -1 'Major version
For y = 20 To 0 Step -1 'Minor version
varRef =
ActiveWorkbook.VBProject.References.AddFromGuid("{ 86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}",
x, y)
Next y
Next x


Hope this Helps

Duncan




Benz wrote:
I just switched laptops, I went to create a new calendar in VB and under
Additional Tools I can not find the Calendar Control...... do I need to
re-download? if so where?

Thank You in advance for everyone who helps.



MattShoreson[_130_]

Calendar Control
 

I found that unless you have a copy of access installed you dont get the
MSCAL.ocx files.

search on the web for calendar ocx I think its version 10 at the mo.

look for:


MSCAL.cnt
MSCAL.DEP
mscal.GID
MSCAL.hlp
MSCAL.oca
MSCAL.ocx

then register the little blighter.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=564326


Benz

Calendar Control
 
That did not work

"Duncan" wrote:



Try this..

Dim x As Integer, y As Integer
Dim varRef As Variant
On Error Resume Next
For x = 20 To 0 Step -1 'Major version
For y = 20 To 0 Step -1 'Minor version
varRef =
ActiveWorkbook.VBProject.References.AddFromGuid("{ 86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}",
x, y)
Next y
Next x


Hope this Helps

Duncan




Benz wrote:
I just switched laptops, I went to create a new calendar in VB and under
Additional Tools I can not find the Calendar Control...... do I need to
re-download? if so where?

Thank You in advance for everyone who helps.




Benz

Calendar Control
 
Thank You!!

"MattShoreson" wrote:


I found that unless you have a copy of access installed you dont get the
MSCAL.ocx files.

search on the web for calendar ocx I think its version 10 at the mo.

look for:


MSCAL.cnt
MSCAL.DEP
mscal.GID
MSCAL.hlp
MSCAL.oca
MSCAL.ocx

then register the little blighter.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=564326



Duncan[_5_]

Calendar Control
 
Sorry Benz,

I was in too much of a rush to think properly maybe, this is a little
bit of code someone donated to me when I wanted to ensure the control
was added on startup...not really what you wanted though...I should
have read your post twice!

Duncan



Benz wrote:

Thank You!!

"MattShoreson" wrote:


I found that unless you have a copy of access installed you dont get the
MSCAL.ocx files.

search on the web for calendar ocx I think its version 10 at the mo.

look for:


MSCAL.cnt
MSCAL.DEP
mscal.GID
MSCAL.hlp
MSCAL.oca
MSCAL.ocx

then register the little blighter.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=564326




MattShoreson[_131_]

Calendar Control
 

however, if you're deploying the app at work make sure the users hav
got the ocx installed

--
MattShoreso
-----------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...nfo&userid=347
View this thread: http://www.excelforum.com/showthread.php?threadid=56432



All times are GMT +1. The time now is 03:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com