T
Trisped
I am trying to change the contents of an Excel worksheet embedded in my
MSWord document. Currently I have to create the Excel worksheet in VBA
and save the function call in a variable of the type InlineShape.
Is there a way to find an already existing worksheet and use that? I
am using Word/Excel 12, so I have access to the xml files that make
them up.
The document xml file states:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <w:document
xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns="urn:schemas-microsoft-comfficeffice"
xmlns12="http://schemas.microsoft.com/office/2004/7/core"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
xmlns:w10="urn:schemas-microsoft-comffice:word"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
- <w:body>
- <w>
- <w:r w:rsidR="00D66D7D">
- <wbject w:dxaOrig="9133" w:dyaOrig="7593">
- <v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75"
oreferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
stroked="f">
<v:stroke joinstyle="miter" />
- <v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<vath o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype>
- <v:shape id="_x0000_i1025" type="#_x0000_t75"
style="width:456.75pt;height:379.5pt" ole="">
<v:imagedata r:id="rId6" o:title="" />
</v:shape>
<o:OLEObject Type="Embed" ProgID="Excel.Sheet.8"
ShapeID="_x0000_i1025" DrawAspect="Content" ObjectID="_1229377176"
r:id="rId7" />
</wbject>
</w:r>
</w>
- <w:sectPr w:rsidR="00324566" w:rsidSect="00B03864">
<wgSz w:w="12240" w:h="15840" />
<wgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440"
w:header="720" w:footer="720" w:gutter="0" />
<w:cols w:space="720" />
<w:docGrid w:linePitch="360" />
</w:sectPr>
</w:body>
</w:document>
---------------------------------------------------------------------
There is also the content of the "embeddings" folder which has the file
"Microsoft_Office_Excel_97-2003_Worksheet1.xls"
Thanks in advance,
Trisped
MSWord document. Currently I have to create the Excel worksheet in VBA
and save the function call in a variable of the type InlineShape.
Is there a way to find an already existing worksheet and use that? I
am using Word/Excel 12, so I have access to the xml files that make
them up.
The document xml file states:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <w:document
xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns="urn:schemas-microsoft-comfficeffice"
xmlns12="http://schemas.microsoft.com/office/2004/7/core"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
xmlns:w10="urn:schemas-microsoft-comffice:word"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml">
- <w:body>
- <w>
- <w:r w:rsidR="00D66D7D">
- <wbject w:dxaOrig="9133" w:dyaOrig="7593">
- <v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75"
oreferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
stroked="f">
<v:stroke joinstyle="miter" />
- <v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<vath o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype>
- <v:shape id="_x0000_i1025" type="#_x0000_t75"
style="width:456.75pt;height:379.5pt" ole="">
<v:imagedata r:id="rId6" o:title="" />
</v:shape>
<o:OLEObject Type="Embed" ProgID="Excel.Sheet.8"
ShapeID="_x0000_i1025" DrawAspect="Content" ObjectID="_1229377176"
r:id="rId7" />
</wbject>
</w:r>
</w>
- <w:sectPr w:rsidR="00324566" w:rsidSect="00B03864">
<wgSz w:w="12240" w:h="15840" />
<wgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440"
w:header="720" w:footer="720" w:gutter="0" />
<w:cols w:space="720" />
<w:docGrid w:linePitch="360" />
</w:sectPr>
</w:body>
</w:document>
---------------------------------------------------------------------
There is also the content of the "embeddings" folder which has the file
"Microsoft_Office_Excel_97-2003_Worksheet1.xls"
Thanks in advance,
Trisped