Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Distribute Excel Application

Does anyone know what is a good way to distribution an Excel
application? I have tried to send an Excel file which uses some
objects/components (User Form, Calendar, and ADO for example). The
file runs fine on my computer, but not on the recipient's. We have the
same version of Excel. Any idea?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Distribute Excel Application

If the recipient has a Mac and you have a PC or vice versa,it could be a
problem. To do a good analysis one would need to know if any error messages
resulted and what those messages are.

" wrote:

Does anyone know what is a good way to distribution an Excel
application? I have tried to send an Excel file which uses some
objects/components (User Form, Calendar, and ADO for example). The
file runs fine on my computer, but not on the recipient's. We have the
same version of Excel. Any idea?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Distribute Excel Application

Thanks JL. Basically, both machines are PCs. The recipient received
"Object not available..." error message. When the recipient go to
Reference, the particular object or library is missing.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Distribute Excel Application

Calendar and ADO aren't part of Excel, so not sure of the significance of
having the same version.

You workbook probably has references to those libraries. If so, they would
have to exist in the same locations and be registered to work in the other
computer. If you know they are installed, you might want to use late
binding.

http://support.microsoft.com/default...b;en-us;245115
INFO: Using Early Binding and Late Binding in Automation

--
Regards,
Tom Ogilvy


wrote in message
ups.com...
Does anyone know what is a good way to distribution an Excel
application? I have tried to send an Excel file which uses some
objects/components (User Form, Calendar, and ADO for example). The
file runs fine on my computer, but not on the recipient's. We have the
same version of Excel. Any idea?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Distribute Excel Application

Thanks Tom. I just read the article. This sentence

.....if you need to be able to automate Excel 95, Excel 97, Excel 2000,
and Excel 2002, you should use the type library for Excel 95
(XL5en32.olb) to maintain compatibility with all three versions.

is quite useful.

What I need is to find a way to distribute my application assuming that
the client may not have the object(s) installed (or the object is
missing) and assuming we all use the same Excel version.

Help....



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Distribute Excel Application

Perhaps you will get a sense of it he

http://www.rondebruin.nl/calendar.htm

also see the link he has posted for downloading a copy of the control. That
reference also contains some good information.

--
Regards,
Tom Ogilvy


wrote in message
ups.com...
Thanks Tom. I just read the article. This sentence

....if you need to be able to automate Excel 95, Excel 97, Excel 2000,
and Excel 2002, you should use the type library for Excel 95
(XL5en32.olb) to maintain compatibility with all three versions.

is quite useful.

What I need is to find a way to distribute my application assuming that
the client may not have the object(s) installed (or the object is
missing) and assuming we all use the same Excel version.

Help....



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default Distribute Excel Application

Here's an example of what I use;

net use Z: /d
net use Z: \\naras0\someshare
attrib -h %systemroot%\system32\mscomct2.ocx
regsvr32 /u /s %systemroot%\system32\mscomct2.ocx
xcopy Z:\mscomct2.ocx %systemroot%\system32 /h /q /v /y
regsvr32 /s %systemroot%\system32\mscomct2.ocx
net use Z: /d

mscomct2.ocx contains;
Microsoft Animation Control
Microsoft UpDown Control
Microsoft MonthView Control
Microsoft Date and Time Picker Control
Microsoft Flat ScrollBar Control

If you're really using a calendar control I think that comes with Access
(Mscal.ocx)

ADO is part of MDAC so just reference a version of 'Microsoft ActiveX Data
Objects 2.x Library' that supports your clients.

These links may also help.

http://support.microsoft.com/default...b;en-us;297381
http://msdn.microsoft.com/data/ref/mdac/downloads/
http://support.microsoft.com/?id=305528
--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

wrote:
| Does anyone know what is a good way to distribution an Excel
| application? I have tried to send an Excel file which uses some
| objects/components (User Form, Calendar, and ADO for example). The
| file runs fine on my computer, but not on the recipient's. We have the
| same version of Excel. Any idea?
|


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Distribute Excel Application

Thanks again, Tom. What if the recipients get a "Object not available"
message when open my file? Can I send them the library file and ask
them to put it in their Window folder?

(By the way, how can you have your name appear in the From or By
section instead of email address?)

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Distribute Excel Application

That is the generally the advantage of late binding. You do Createobject
and trap for the error. If there is an error, then you can decide what is
the appropriate action.

This might not be appropriate for the calendar control if you are using it
in a userform - unless you add it at runtime. It should work for ADO

Dave Patrick has shown you some type of script he uses (I don't recall that
he said what it was from - perhaps a cmd file from its appearance). the
regsvr32.exe is used to register a control. His links show some
downloads, and talks about the VB (not VBA) method for distributing an
application. If you have the developer version of Office or VB (not VBA)
installed, then you would have access to the package and deployment wizard
(otherwise, I believe not).

You might look at this article , particularly about an install/setup
procedure. It is here you could check for the existence of controls and
whether they are registered or, when not to install a copy. (Jan doesn't
specifically talk about activex controls or external libraries though, I
don't believe).

http://www.jkp-ads.com/articles/DistributeMacro00.htm


A lot will have to do with what you are about. If you are just sharing with
a friend, you approach may be less sophisticated than if you want to sell
this as a commercial app.

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
Thanks again, Tom. What if the recipients get a "Object not available"
message when open my file? Can I send them the library file and ask
them to put it in their Window folder?

(By the way, how can you have your name appear in the From or By
section instead of email address?)



  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Distribute Excel Application

Thanks Dave.

I was reading the info from http://support.microsoft.com/?id=305528.
If I use Microsoft Office XP Developer Edition to package my Excel app
(which saved in Excel 97 to 2003 format), can the recipients run the
app on their Excel 2000 machine?

Also, what does the following do in plain English? Do I put it in a
batch file?

net use Z: /d
net use Z: \\naras0\someshare
attrib -h %systemroot%\system32\mscomct2.ocx
regsvr32 /u /s %systemroot%\system32\mscomct2.ocx
xcopy Z:\mscomct2.ocx %systemroot%\system32 /h /q /v /y
regsvr32 /s %systemroot%\system32\mscomct2.ocx
net use Z: /d

mscomct2.ocx contains;
Microsoft Animation Control
Microsoft UpDown Control
Microsoft MonthView Control
Microsoft Date and Time Picker Control
Microsoft Flat ScrollBar Control




  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 249
Default Distribute Excel Application

I would think so. Actually I've never used the office version P&D tool. They
may be in a better position to answer office P&D questions here.
microsoft.public.office.developer.automation

I place the various OCX or DLL files in a distribution share then run this
CMD script to install and register them.

--------registration.cmd-----------
net use Z: /d
net use Z: \\naras0\someshare
attrib -h %systemroot%\system32\mscomct2.ocx
regsvr32 /u /s %systemroot%\system32\mscomct2.ocx
xcopy Z:\mscomct2.ocx %systemroot%\system32 /h /q /v /y
regsvr32 /s %systemroot%\system32\mscomct2.ocx
net use Z: /d
--------end file-----------

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

wrote:
| Thanks Dave.
|
| I was reading the info from http://support.microsoft.com/?id=305528.
| If I use Microsoft Office XP Developer Edition to package my Excel app
| (which saved in Excel 97 to 2003 format), can the recipients run the
| app on their Excel 2000 machine?
|
| Also, what does the following do in plain English? Do I put it in a
| batch file?
|
| net use Z: /d
| net use Z: \\naras0\someshare
| attrib -h %systemroot%\system32\mscomct2.ocx
| regsvr32 /u /s %systemroot%\system32\mscomct2.ocx
| xcopy Z:\mscomct2.ocx %systemroot%\system32 /h /q /v /y
| regsvr32 /s %systemroot%\system32\mscomct2.ocx
| net use Z: /d
|
| mscomct2.ocx contains;
| Microsoft Animation Control
| Microsoft UpDown Control
| Microsoft MonthView Control
| Microsoft Date and Time Picker Control
| Microsoft Flat ScrollBar Control
|


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
Distribute Excel Macro JP SIngh Excel Programming 2 May 6th 05 12:32 PM
How to distribute a workbook as a stand-alone application? Paul Gallagher Excel Programming 5 March 16th 05 09:53 PM
Files to distribute with Excel 11.0? Rob Bovey Excel Programming 1 September 10th 04 05:03 PM
Distribute Excel Addin PC[_3_] Excel Programming 1 July 23rd 04 03:43 AM
Distribute Personl.xls and excel.xlb for net use Petra Frimpong Excel Programming 2 February 12th 04 03:08 PM


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