Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 188
Default How do I save an embedded item from a worksheet into a folder

"Tom Ogilvy" wrote in message
...

That wouldn't work anyway, so no need to struggle with it.


Hi Tom,

Thanks for your reply.

Does that mean it is impossible to do it purely through the
distribution of the xls file?

Do I have to find some other way to get the file onto their hard disk?
I'm not really familiar with this, so I am not quite sure what you
mean by:


If you want to install the control on a users computer, you will

need
to have the files that define the control and install them.


As far as I know, there is only one file (mscal.ocx). To do it
manually, I just drop that file into the correct folder on their PC,
and then register it using VBA:

Shell ("regsvr32.exe mscal.ocx")

Therefore, I think it is only this part that is stopping me:


you will need to have the files that define the control


But I definately have the file - it is just how to actually distribute
it that I cannot figure out.


Apologies if I am missing the point - I haven't tried this before.

Thanks for your assistance,

Alan.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do I save an embedded item from a worksheet into a folder

As far as I know, there is only one file (mscal.ocx). To do it
manually, I just drop that file into the correct folder on their PC,
and then register it using VBA:

Shell ("regsvr32.exe mscal.ocx")


that is what I mean. You can't embed that file in your xls file.

When you install software produced by a commercial entity, there is usually
an install routine that does the above. If all you are doing is passing
around an xls, then you probably need to also pass the OCX and instructions
how to register it, or have them put it in the same directory as your xls
and have code in the xls that copies it to the correct directory and runs
the shell command.

--
Regards,
Tom Ogilvy

"Alan" wrote in message
...
"Tom Ogilvy" wrote in message
...

That wouldn't work anyway, so no need to struggle with it.


Hi Tom,

Thanks for your reply.

Does that mean it is impossible to do it purely through the
distribution of the xls file?

Do I have to find some other way to get the file onto their hard disk?
I'm not really familiar with this, so I am not quite sure what you
mean by:


If you want to install the control on a users computer, you will

need
to have the files that define the control and install them.


As far as I know, there is only one file (mscal.ocx). To do it
manually, I just drop that file into the correct folder on their PC,
and then register it using VBA:

Shell ("regsvr32.exe mscal.ocx")

Therefore, I think it is only this part that is stopping me:


you will need to have the files that define the control


But I definately have the file - it is just how to actually distribute
it that I cannot figure out.


Apologies if I am missing the point - I haven't tried this before.

Thanks for your assistance,

Alan.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 188
Default How do I save an embedded item from a worksheet into a folder

"Tom Ogilvy" wrote in message
...

When you install software produced by a commercial entity, there is
usually an install routine that does the above. If all you are
doing is passing around an xls, then you probably need to also pass
the OCX and instructions how to register it, or have them put it in
the same directory as your xls and have code in the xls that copies
it to the correct directory and runs the shell command.


Thanks Tom.


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
save worksheet to a folder Hoyos Excel Discussion (Misc queries) 5 August 11th 07 05:52 PM
Save an embedded workbook in PPT Jose Mourinho Excel Discussion (Misc queries) 2 July 8th 07 04:01 PM
Need code to save file to new folder, erase from old folder Ron M. Excel Discussion (Misc queries) 1 February 24th 06 06:02 PM
"Save As" folder -- can I default this to the same folder as origi Mike Excel Discussion (Misc queries) 1 June 11th 05 12:06 AM
save picture in worksheet into certain folder wiwi[_2_] Excel Programming 0 December 29th 03 02:39 PM


All times are GMT +1. The time now is 07:25 AM.

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"