I Have the below code which populates an email with a range of data ive converted to HTML, however when it gets to .HTMLBody = RangetoHTML(ds) - it does the Function Rangeto