Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 349
Default Throw out the Excel Object Model and then bring it back!

Hello

With the new XML model in Excel, it was time to throw out the COM interface
and start creating and updating worksheets automatically using XML.

However, I have quickly run into shortcomings and have not found any
solution. Let's start with somthing simple, printing. After creating the
worksheet with XML how can I automically print it without reverting back to
COM and using the print method?

Another example, calucations. Suppose I have a calculation in D4 that is the
sum of B4 and C4. Let's insert values to B4 and C4 using XML, the
calculation in D4 remains stale... again in COM this is not an issue.

Another example, macros. With the COM interface, macros can be invoked to
refine the content of a worksheet. It seems now all the macro code has to
be lifted out so that similar operations can be performed through the XML
model. Are there any tools out there that can help in this situation?

Am I incorrect in my initial reaction? I have only been using the XML
interface for a couple of days so there may be features I have missed.

Peter
--
www.TheReportCompany.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Throw out the Excel Object Model and then bring it back!

XML isn't a replacement for COM. It should be considered as an alternative
for a subset of the tasks that you may need to carry out.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Peter" wrote in message
...
Hello

With the new XML model in Excel, it was time to throw out the COM
interface
and start creating and updating worksheets automatically using XML.

However, I have quickly run into shortcomings and have not found any
solution. Let's start with somthing simple, printing. After creating the
worksheet with XML how can I automically print it without reverting back
to
COM and using the print method?

Another example, calucations. Suppose I have a calculation in D4 that is
the
sum of B4 and C4. Let's insert values to B4 and C4 using XML, the
calculation in D4 remains stale... again in COM this is not an issue.

Another example, macros. With the COM interface, macros can be invoked to
refine the content of a worksheet. It seems now all the macro code has
to
be lifted out so that similar operations can be performed through the XML
model. Are there any tools out there that can help in this situation?

Am I incorrect in my initial reaction? I have only been using the XML
interface for a couple of days so there may be features I have missed.

Peter
--
www.TheReportCompany.com



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
Bring back .dbf in Excel Laura Excel Discussion (Misc queries) 11 July 13th 09 10:20 PM
how do i bring back excel sheet ? MoBi Excel Worksheet Functions 3 January 14th 08 01:52 PM
Excel Object Model Jeff Wright[_2_] Excel Programming 4 October 9th 06 02:34 PM
Bring back the FORMULA RESULT BAR in excel Howard New Users to Excel 1 August 19th 05 10:13 PM
Confusion about how the Window object fits into the Excel object model Josh Sale Excel Programming 11 April 15th 05 06:08 PM


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