in reply to Re^2: HTML entity write error
in thread HTML entity write error

Did you miss use Spreadsheet::Write; in the code at Ln4?

Oops. Apologies.
reminder to self: read on down thru the thread (branch) before replying.!