performing custom command when saving

  • Thread starter Thread starter Omar
  • Start date Start date
O

Omar

hi,

when i save a document i also want the document saved in a few other
formats. it gets really laborious doing this via the menu each time...
is there a way to watch for the save command and then execute say save
as html at the same time?

thanks

omar
 
Hi, Omar,

I'm glad you thought to ask this question -- a lot of folks try to overwrite
their colleagues' normal.dot and wind up in a heap of trouble.

You should put your macros in a separate template that you distribute, and
the other people put it in their Word startup folder so that it becomes a
"global" template. The details are at
http://www.mvps.org/word/FAQs/MacrosVBA/DistributeMacros.htm.
 
Jay Freedman said:
Hi, Omar,

I'm glad you thought to ask this question -- a lot of folks try to overwrite
their colleagues' normal.dot and wind up in a heap of trouble.

this worked but now one more question... what i am doing is first
saving the document (ActiveDocument.Save) and then doing an
ActiveDocument.SaveAs call... however if i just leave it at that (and
save it as HTML) then i'm working on the html version after the save
call. a stupid hack that i can do is then do ANOTHER SaveAs call as a
standard word format..

but ideally i just want to save it as a word document, and then in the
background write the html document (or whatever format) without
actually working in that format after the save.

any ideas?

thanks

omar
 
Sorry to say, the stupid hack is the best there is. The alternative is to
copy the original document's contents into a new blank document, save that
as HTML, and close it; but I think that's slower.
 
Back
Top