Saving .doc as .html with vba

A

Asger

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
 
M

michael.jarratt

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
 

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