Hi all,

I need to convert some .doc files to .html with vba. I tried to record a
macro that did this but to save the file it has a static name eg.
"filename.doc" becomes "filename.html". And that is also recorded in the
macro. Is there anyone who can help me make it so that the file name of the
saved file is the name of the current document?

Thanks asger

Re: Saving .doc as .html with vba by michael

michael
Wed Jun 27 05:53:15 CDT 2007

On 27 Jun, 11:30, Asger <A...@discussions.microsoft.com> wrote:
> Hi all,
>
> I need to convert some .doc files to .html with vba. I tried to record a
> macro that did this but to save the file it has a static name eg.
> "filename.doc" becomes "filename.html". And that is also recorded in the
> macro. Is there anyone who can help me make it so that the file name of the
> saved file is the name of the current document?
>
> Thanks asger

Hi

Not sure if this will help but you could try the following

http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true

and

http://www.microsoft.com/technet/scriptcenter/resources/qanda/feb05/hey0218.mspx

Regards