Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using the Microsoft Spreadsheet Control as ActiveX

Hi

I am using the Microsoft Office Spreadsheet component
which is in the Microsoft Office XP Web Components type
library.

I have this activex as a control on a form. I cannot work
out how to load data from an disk file, say "data.xls"

I would apprecaite some assistance.

lawrence
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using the Microsoft Spreadsheet Control as ActiveX

Can someone try to help me with this ?


Lawrence
-----Original Message-----
Hi

I am using the Microsoft Office Spreadsheet component
which is in the Microsoft Office XP Web Components type
library.

I have this activex as a control on a form. I cannot work
out how to load data from an disk file, say "data.xls"

I would apprecaite some assistance.

lawrence
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Using the Microsoft Spreadsheet Control as ActiveX

I have the same problem. I've looked all around, and apparently there is no
way for the spreadsheet control to load/save .XLS files programmatically.
You can, of course, use the control's toolbar to manually export the
control's data to Excel, and save from there. But I don't think you can do
the reverse.

I got around this by using .XML files instead of .XLS files. I created a
"template" spreadsheet in Excel and saved it as a .XML file from there.
Then, I use the XMLURL property of the spreadsheet control to load the file,
make my changes, and then use the Export method (with the
ssExportXMLSpreadsheet format option) to save it. It works for me because
Excel can also read/write XML files.

HTH,

Carl Rapson

"lawrence" wrote in message
...
Can someone try to help me with this ?


Lawrence
-----Original Message-----
Hi

I am using the Microsoft Office Spreadsheet component
which is in the Microsoft Office XP Web Components type
library.

I have this activex as a control on a form. I cannot work
out how to load data from an disk file, say "data.xls"

I would apprecaite some assistance.

lawrence
.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using the Microsoft Spreadsheet Control as ActiveX

Thanks for the update.

What I did was I used the SaveAs property of the Excel COM object and
created the XMLSpreadsheet on the fly.

Then I used the XMLURL property to load the xml.

Thanks for the assistance

Lawrence



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
2007 Form Control/ActiveX Control font difference Nikko963 Excel Discussion (Misc queries) 0 April 15th 09 04:21 PM
How to lock an ActiveX Control box on the spreadsheet? Ange Excel Worksheet Functions 1 October 29th 08 12:31 AM
ActiveX control with chart Tanihera Charts and Charting in Excel 1 April 11th 06 05:36 PM
sumif from activeX control CraigSA Excel Worksheet Functions 1 March 31st 06 01:47 PM
Tab to an ActiveX control? Karin Excel Discussion (Misc queries) 0 July 6th 05 05:08 AM


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