Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Chip Pearson's VB Object references

I recently distributed a 2007 workbook that contained pop up calendars
courtesy of the Microsoft Office Calendar Control 2007. I foolishly assumed
that when a user opened the workbook, Excel would €śrealise€ť that there was a
Calendar control embedded and automatically enable the VB reference.
Optimistic eh?
I was looking at ways to automate the enablement of the Calendar reference
object €“ I found this code on Chip Pearsons site and wondered if a similar
thing could be run to automatically select the Calendar control? This code
enables the Microsoft Visual Basic Application Extensibility 5.3 object
library.

ThisWorkbook.VBProject.References.AddFromGuid _
GUID:="{0002E157-0000-0000-C000-000000000046}", _
Major:=5, Minor:=3

All help appreciated!
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default Chip Pearson's VB Object references

Surely, if you created the workbook in 2007, and your other users also have
2007, it will already be referenced (did you check the References list?).
More probable is that they don't have the control on their machine.

--

HTH

Bob

"Rodels" wrote in message
...
I recently distributed a 2007 workbook that contained pop up calendars
courtesy of the Microsoft Office Calendar Control 2007. I foolishly
assumed
that when a user opened the workbook, Excel would "realise" that there was
a
Calendar control embedded and automatically enable the VB reference.
Optimistic eh?
I was looking at ways to automate the enablement of the Calendar reference
object - I found this code on Chip Pearson's site and wondered if a
similar
thing could be run to automatically select the Calendar control? This
code
enables the Microsoft Visual Basic Application Extensibility 5.3 object
library.

ThisWorkbook.VBProject.References.AddFromGuid _
GUID:="{0002E157-0000-0000-C000-000000000046}", _
Major:=5, Minor:=3

All help appreciated!
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Chip Pearson's VB Object references

Hi Rodels,

I recently distributed a 2007 workbook that contained pop up calendars
courtesy of the Microsoft Office Calendar Control 2007. I foolishly assumed
that when a user opened the workbook, Excel would “realise” that there was a
Calendar control embedded and automatically enable the VB reference.
Optimistic eh?


Problem is, there is NO control embedded in your file, only a reference to the
control on your system.

If the user does not have that control installed, there is no way to have VBA
register the control, simply because it isn't there in the first place.

You need to instruct your user how to download and install the mscal.ocx
control (available through the Microsoft website).

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Chip Pearson's VB Object references

Bob and Jan Karel,
many thanks.

Bob you are correct - the reason the control would not activate is that the
control was not available. Jan Karel's suggestion of downloading the ocx and
installing that worked. I suspect that environments with locked down secure
desktops could pose a problem to this approach so I will need to rethink.

Many thanks again!

Robert
--
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.


"Rodels" wrote:

I recently distributed a 2007 workbook that contained pop up calendars
courtesy of the Microsoft Office Calendar Control 2007. I foolishly assumed
that when a user opened the workbook, Excel would €śrealise€ť that there was a
Calendar control embedded and automatically enable the VB reference.
Optimistic eh?
I was looking at ways to automate the enablement of the Calendar reference
object €“ I found this code on Chip Pearsons site and wondered if a similar
thing could be run to automatically select the Calendar control? This code
enables the Microsoft Visual Basic Application Extensibility 5.3 object
library.

ThisWorkbook.VBProject.References.AddFromGuid _
GUID:="{0002E157-0000-0000-C000-000000000046}", _
Major:=5, Minor:=3

All help appreciated!
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default Chip Pearson's VB Object references

That is always a problem, that is why many developers develop their own
calendars.

--

HTH

Bob

"Rodels" wrote in message
...
Bob and Jan Karel,
many thanks.

Bob you are correct - the reason the control would not activate is that
the
control was not available. Jan Karel's suggestion of downloading the ocx
and
installing that worked. I suspect that environments with locked down
secure
desktops could pose a problem to this approach so I will need to rethink.

Many thanks again!

Robert
--
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.


"Rodels" wrote:

I recently distributed a 2007 workbook that contained pop up calendars
courtesy of the Microsoft Office Calendar Control 2007. I foolishly
assumed
that when a user opened the workbook, Excel would "realise" that there
was a
Calendar control embedded and automatically enable the VB reference.
Optimistic eh?
I was looking at ways to automate the enablement of the Calendar
reference
object - I found this code on Chip Pearson's site and wondered if a
similar
thing could be run to automatically select the Calendar control? This
code
enables the Microsoft Visual Basic Application Extensibility 5.3 object
library.

ThisWorkbook.VBProject.References.AddFromGuid _
GUID:="{0002E157-0000-0000-C000-000000000046}", _
Major:=5, Minor:=3

All help appreciated!
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Chip Pearson's VB Object references

Interesting point.

By the way, I enjoyed your sessions at the Excel User group last year.
--
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.


"Bob Phillips" wrote:

That is always a problem, that is why many developers develop their own
calendars.

--

HTH

Bob

"Rodels" wrote in message
...
Bob and Jan Karel,
many thanks.

Bob you are correct - the reason the control would not activate is that
the
control was not available. Jan Karel's suggestion of downloading the ocx
and
installing that worked. I suspect that environments with locked down
secure
desktops could pose a problem to this approach so I will need to rethink.

Many thanks again!

Robert
--
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.


"Rodels" wrote:

I recently distributed a 2007 workbook that contained pop up calendars
courtesy of the Microsoft Office Calendar Control 2007. I foolishly
assumed
that when a user opened the workbook, Excel would "realise" that there
was a
Calendar control embedded and automatically enable the VB reference.
Optimistic eh?
I was looking at ways to automate the enablement of the Calendar
reference
object - I found this code on Chip Pearson's site and wondered if a
similar
thing could be run to automatically select the Calendar control? This
code
enables the Microsoft Visual Basic Application Extensibility 5.3 object
library.

ThisWorkbook.VBProject.References.AddFromGuid _
GUID:="{0002E157-0000-0000-C000-000000000046}", _
Major:=5, Minor:=3

All help appreciated!
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.



.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default Chip Pearson's VB Object references

Thank-you, I am sorry there are none planned for this year, but they take a
lot of organising.

--

HTH

Bob

"Rodels" wrote in message
...
Interesting point.

By the way, I enjoyed your sessions at the Excel User group last year.
--
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.


"Bob Phillips" wrote:

That is always a problem, that is why many developers develop their own
calendars.

--

HTH

Bob

"Rodels" wrote in message
...
Bob and Jan Karel,
many thanks.

Bob you are correct - the reason the control would not activate is that
the
control was not available. Jan Karel's suggestion of downloading the
ocx
and
installing that worked. I suspect that environments with locked down
secure
desktops could pose a problem to this approach so I will need to
rethink.

Many thanks again!

Robert
--
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.


"Rodels" wrote:

I recently distributed a 2007 workbook that contained pop up calendars
courtesy of the Microsoft Office Calendar Control 2007. I foolishly
assumed
that when a user opened the workbook, Excel would "realise" that there
was a
Calendar control embedded and automatically enable the VB reference.
Optimistic eh?
I was looking at ways to automate the enablement of the Calendar
reference
object - I found this code on Chip Pearson's site and wondered if a
similar
thing could be run to automatically select the Calendar control? This
code
enables the Microsoft Visual Basic Application Extensibility 5.3
object
library.

ThisWorkbook.VBProject.References.AddFromGuid _
GUID:="{0002E157-0000-0000-C000-000000000046}", _
Major:=5, Minor:=3

All help appreciated!
Kind regards,
Robert


Rodels! Creating weapons of Maths Destruction since 2003.



.



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
Who Can Expand Chip Pearson's procedure ExportToTextFile? Curious[_6_] Excel Programming 8 May 12th 09 05:32 AM
Chip Pearson's DistinctValues function Mike Fogleman[_2_] Excel Programming 9 March 22nd 09 04:24 PM
Chip Pearson's NewWorkDays formula Pete Rooney Excel Discussion (Misc queries) 9 August 9th 08 01:57 AM
DeleteDuplicatesViaFilter From Chip Pearson's Website JohnHB Excel Programming 1 April 11th 07 09:06 PM
Chip Pearson's Forum Etiquette Gary L Brown New Users to Excel 0 January 20th 06 07:22 PM


All times are GMT +1. The time now is 05:44 AM.

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

About Us

"It's about Microsoft Excel"