including html file shows codes...

R

Rvo

I try to include a file containing html markup (not valid html though).
When I do this with
'Selection.InsertFile FileName:=(BESTAND), Range:="",
ConfirmConversions:=False, Link:=False, Attachment:=False

The html markup is visible after insertion. Is there a way to specify that
the file to be inserted should be seen as html?

Kind regards,

Romain
 
L

Lesley Regan

Rvo said:
I try to include a file containing html markup (not valid html though).
When I do this with
'Selection.InsertFile FileName:=(BESTAND), Range:="",
ConfirmConversions:=False, Link:=False, Attachment:=False

The html markup is visible after insertion. Is there a way to specify that
the file to be inserted should be seen as html?

Kind regards,

Romain

Romain,

If you insert an html file into a word document, the word document must be
of type Web page in order to avoid viewing the html markup in the inserted
file.

I tested this by opening a Word document, saving as Web page, and inserting
one of my html files.

Regards,

Lesley
 

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