(Word 2003)

Hi,

I have a situation in which I need to copy the contents of an HTML, complete
with its CSS files and images, into a Word document.

The simple solution is to use the command Selection.InsertFile which is
equivalent to choosing File / Insert from the menu. However no matter what
parameters I give to Selection.InsertFile, I keep getting the same message:

"Recording Clipboard style sheet will require copying many styles. Do you
want to use Normal style instead?"

The correct answer to this question is NO because it preserves all the
formatting. However I can't find any switch to make this dialog disappear
and answer NO.

How can I close this dialog while answering NO programmatically?

Thanks,
Arie

Re: Inserting HTML into Word by Arie

Arie
Thu Jun 29 02:26:00 CDT 2006

Well in case anyone is interested, I've solved the problem by reducing the
size of my CSS file.
I just took the styles I needed and dropped the rest.
This caused the message dialog to disappear from Word.


"Arie Zilberstein" <azilberstein@mercury.com> wrote in message
news:%23354W3SmGHA.2372@TK2MSFTNGP04.phx.gbl...
> (Word 2003)
>
> Hi,
>
> I have a situation in which I need to copy the contents of an HTML,
> complete with its CSS files and images, into a Word document.
>
> The simple solution is to use the command Selection.InsertFile which is
> equivalent to choosing File / Insert from the menu. However no matter what
> parameters I give to Selection.InsertFile, I keep getting the same
> message:
>
> "Recording Clipboard style sheet will require copying many styles. Do you
> want to use Normal style instead?"
>
> The correct answer to this question is NO because it preserves all the
> formatting. However I can't find any switch to make this dialog disappear
> and answer NO.
>
> How can I close this dialog while answering NO programmatically?
>
> Thanks,
> Arie
>