Inserting HTML into Word

A

Arie Zilberstein

(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
 
A

Arie Zilberstein

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top