This is a very powerful VBA macro for Microsoft Word (7.0, 8.0, and 9.0 - so called Word 97, 2000, Word XP). It retrieves, opens, converts and saves documents (into the desired location). Everything, which Word is able to open, can be stored in four file formats html, doc, rtf, txt (UTF8).
Macro may create the original structure of directories (mirroring), it can find headings or styles and divide documents accordingly. Error handling routines make sure that, if Word crashes (which may happen quite often), the state of progress will be retained - next time you start the program, it will not process all the files again.
Conversions of some hundreds of doc, rtf, and html files was matter of minutes. Source code is included in the separate file (download it, and follow instructions), the attached MS WORD file already contains the macro, you may run it directly after opening the file in MsWord (from Tools - macro, however, this is somewhat unstable solution - you were warned;)
The program is released under GPL license
Automatická konverze dokumentů
Toto je makro napsané v jazyce VBA a vkládá se do aplikace Microsoft Word (vyzkoušeno ve verzích 8.0 a 9.0; tzv.Word 2000 a XP). Umí vyhledat dokumenty podle zadané masky(na discích, k nimž má počítač přístup), pak dokumenty postupně otevírá, konvertuje a ukládá (do zvoleného místa). Cokoliv, co lze otevřít ve Wordu (klidně i *.gif :), lze uložit v těchto formátech html,doc,rtf, a nebo txt. Makro umí vytvořit strukturu zpracovaváných adresářů, rozdělit dokumenty na části, vyhledat nadpisy (jakýkoliv zvolený formát) a vzpamatovat se z případného krachu celé aplikace (pokud se stane něco neočekávané, makro si "zapamatuje" dokumenty, které už byly úspěšně zpracovány a pokračuje od posledního v řadě) a vytváří také soubor se zprávami pro uživatele.
Zdrojový kód najdete v src.zip, dokument forgreenstone.doc obsahuje už makro vložené, stačí spustit z: Nástroje : Makra : RUN
Tento program je free, distribuován podle licence GPL a je velmi snadné ho používat.
