Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default vba to set calendar object auto load to TRUE

Hi All,

I have a calendar control object on my worksheet that is named
'calendar1' When i go into design mode it says that the embedded
control is 'MSCAL.Calendar.7'

I would like to set the 'autoload' property to TRUE on opening the
workbook but cant seem to get the coding right. Here's what l have
tried:

ActiveSheet.Shapes("Calendar1").AutoLoad = True

Can anybody help with this code please?

Regards

Michael Beckinsale

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default vba to set calendar object auto load to TRUE

Michael,
Reading the help on the property :
"This property is ignored by ActiveX controls. ActiveX controls are always
loaded when a workbook is opened."
and
"For most OLE object types, this property shouldn't be set to True"

I've always been somewhat unsure of the difference between MSs definitions
of OLE and ActiveX in a VB/VBA sense, so, I'm not sure if the above applies,
although to me the calendar control is an ActiveX control that becomes an
OLE object once on the WS.

However, AutoLoad is member of OLEObjects, not Shapes.

Not really an answer, but...

NickHK

"michael.beckinsale" wrote in message
ups.com...
Hi All,

I have a calendar control object on my worksheet that is named
'calendar1' When i go into design mode it says that the embedded
control is 'MSCAL.Calendar.7'

I would like to set the 'autoload' property to TRUE on opening the
workbook but cant seem to get the coding right. Here's what l have
tried:

ActiveSheet.Shapes("Calendar1").AutoLoad = True

Can anybody help with this code please?

Regards

Michael Beckinsale



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
Could not load object Excelfan Excel Discussion (Misc queries) 2 November 22nd 08 03:43 PM
Could not load an object because it is not available on this machine H.A. de Wilde[_15_] Excel Programming 4 June 27th 06 09:00 AM
Can't load or unload object jase[_2_] Excel Programming 1 June 9th 05 08:52 PM
Could not load an object wayne Excel Programming 3 September 1st 04 08:27 PM
Could Not Load an Object vish tumu Excel Programming 3 November 19th 03 10:52 AM


All times are GMT +1. The time now is 06:58 PM.

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

About Us

"It's about Microsoft Excel"