Also remove flag 1 in these lines.
QMPDF_GetHtmlFiles htmlDir cl aFiles
QMPDF_ProcessFiles htmlDir aFiles
Both formats are not perfect. I cannot make better.
The "Create QM Help pdf" macro temporarily converts the .chm file into many .htm files. You can try to find some tool that converts html to docx. I cannot help.
QMPDF_GetHtmlFiles htmlDir cl aFiles
QMPDF_ProcessFiles htmlDir aFiles
Both formats are not perfect. I cannot make better.
The "Create QM Help pdf" macro temporarily converts the .chm file into many .htm files. You can try to find some tool that converts html to docx. I cannot help.