Hi all,
Is it possible,I save a word file as .doc but when open it,
it's open as html page.Is it possible with vba?.
.doc open as htm,and when close it,it returns to .doc
again.


Rgds,

Shiro

Re: .doc open as html by Jonathan

Jonathan
Thu Apr 10 05:13:36 PDT 2008


"shiro" <shiro@myname?.com> wrote in message
news:e2visqtmIHA.5260@TK2MSFTNGP03.phx.gbl...
> Hi all,
> Is it possible,I save a word file as .doc but when open it,
> it's open as html page.Is it possible with vba?.
> .doc open as htm,and when close it,it returns to .doc
> again.
>

What you want to do sounds like a contradiction in terms.

If you save a file as a doc file, that is what it is. It is more than a
matter of the filename extension, it is the internal stucture of the
information within the file itself.

You can open a doc file within a browser, but it will normally open a copy
of Word so that the file can be properly interpreted and displayed.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup



RE: .doc open as html by GeorgeLee

GeorgeLee
Thu Apr 10 12:55:03 PDT 2008

It sounds like you need an HTML file to display but you want to edit it with
Word. In that case, save it as HTML. To edit it, you'll have to right click
and choose Open With->Word.

Yes, it' s possible with VBA but is awkward. You'll have to open the doc,
save as html, open that, and then save as doc.

"shiro" wrote:

> Hi all,
> Is it possible,I save a word file as .doc but when open it,
> it's open as html page.Is it possible with vba?.
> ..doc open as htm,and when close it,it returns to .doc
> again.
>
>
> Rgds,
>
> Shiro
>
>
>

Re: .doc open as html by shiro

shiro
Thu Apr 10 19:21:08 PDT 2008

Thank's for reply,
The truth I 'm looking for an easy way out about picture in htm file,
since we need also to include the source picture file when copy
and paste a htm file so that the picture not changed to 'red X'.

Why do we can't move the htm ( page ) with picture without
include source picture file.


"George Lee" <GeorgeLee@discussions.microsoft.com> wrote in message
news:7CDA409F-008A-4C53-9C97-A8A92D62EDBF@microsoft.com...
> It sounds like you need an HTML file to display but you want to edit it
with
> Word. In that case, save it as HTML. To edit it, you'll have to right
click
> and choose Open With->Word.
>
> Yes, it' s possible with VBA but is awkward. You'll have to open the doc,
> save as html, open that, and then save as doc.
>
> "shiro" wrote:
>
> > Hi all,
> > Is it possible,I save a word file as .doc but when open it,
> > it's open as html page.Is it possible with vba?.
> > ..doc open as htm,and when close it,it returns to .doc
> > again.
> >
> >
> > Rgds,
> >
> > Shiro
> >
> >
> >