Re: XML to Excel
- From: Cindy M -WordMVP- <C.Meister-C@xxxxxxxxxx>
- Date: Fri, 21 Jul 2006 16:14:24 +0200
Hi HSalim[MVP],
Which version of Excel are we dealing with, here? this sounds more like Excel
2002 than 2003...?
I have an XML document that lists inventory items.
I will post the entire definition and sample data if needed. Briefly, the
fields are
Handle, Name, Description....,(Locations Name, Quantity, ReorderPoint,
MaxStock), (Prices Level,Price)...
fields in parenthesis represent a sub-list of repeating elements.
When I import this data into Excel, it creates a multi-line (cartesian?)
list. Assuming I have 4 locations and 5 prices for every Handle, I have 9
rows in Excel.
What I need instead is to have one row with repeating columns. For example,
Handle, Name, North_Quantity, North_ReorderPoint, North_MaxStock,
South_quantity..., Retail, Level1, Level2...
The purpose is:
a. to give the user a compact, flattened view of the data
b. allow the user to make changes rapidly, taking advantage of simple
formulas and features such as copy down and to send the data back to
the server. (Some fields, such as handle and quantity, will be read-only)
I realize that this would require a lot of coding, with hard-coding of
column layouts. A simple change such as adding a new location may break
this code and require re-coding to accomodate changes or require even more
coding up front anticipating these changes which occur occasionally.
The XML schema for sending updates back to the server is different from the
schema of this document, so breaking conformance to this schema is not a
concern.
I need suggestions on ways to accomplish this. If any one has done
something
similar and would like to share code snippets, that would be great.
I have just started working with XML in Excel and in Access and have read
more than a few articles on MSDN and sites such as XML.com, and would
welcome all suggestions.
-- Cindy
.
- Follow-Ups:
- Re: XML to Excel
- From: HSalim[MVP]
- Re: XML to Excel
- References:
- XML to Excel
- From: HSalim[MVP]
- XML to Excel
- Prev by Date: XML to Excel
- Next by Date: Re: XML to Excel
- Previous by thread: XML to Excel
- Next by thread: Re: XML to Excel
- Index(es):
Relevant Pages
|