idk - I think the VBS to KIX script would be your best starting point. Don't look directly into the PostPrep Kix2Html function - you'll go blind (I did).