"DD Pgh" <DD Pgh@xxxxxx> wrote in message
news:5B71BC28-88FC-4743-8734-EC7A83EB2B28@xxxxxxI think it might be doable, but I don't understand why you would want to do
>I have a need to convert a Word doc with properly applied formatting styles
> into a multi-column Excel spreadsheet.
>
> I think that this processing would predetermine a format style, like
> Heading
> 1, as the row determinator, such that every time the conversion process
> encountered content tagged with a Heading 1 format style, the converted
> spreadsheet would begin a new row.
>
> This process would then identify the various format styles utilized
> between
> each Heading 1, and convert the content for those styles into the columns
> associated with the row of the Heading 1 which they followed.
>
> In other words, treating Excel as a database, the content tagged with a
> Heading 1 format style would become the record key (in column A), and the
> content associated with each format style following the first Heading 1
> and
> before the next Heading 1 would convert to become fields associated with
> the
> first Heading 1 (in columns B, C, D, etc.).
>
> I understand that this process would require a rigid application of format
> styles, but that is the case for my situation.
>
> I would appreciate any feedback on the topic. Does a vbscript exist for
> such a task, or could one be written?
>
> Thank you.
it in VBScript. Word comes with its own customized scripting language (VBA
for Word) and its own editor and debugging package which makes it easy to
access the Word object model. Excel has its own flavor of VBA specialized
for Excel. You should have an easier learning experience if you try to do
this job in some flavor of VBA.
There are a number of Microsoft newsgroups associated with Word VBA, one of
them being microsoft.public.word.vba.general. There are no Microsoft Excel
newsgroups with VBA in their names, but I think
microsoft.public.excel.programming would be applicable. You might
cross-post yourquestion in those two newsgroups. You might want to say what
versions of Word and Excel this has to be compatible with, and whether
multibyte (Unicode for example) character sets are involved.
-Paul Randall


