what you mean the HTML part is ''coming on black and white''? you mean table is being stripped of formatting you did put yourself into it? there is also stuff wrong with your code i think. this
opens file but this
i dont think matters in terms of what you want to see in the html body of email. and this
is just stream. stream doesnt preserve html code and formats i dont htink. then you put result from that routine in html body with this
but you have to know that html table formatting is not the same as table sitting in excel sheet. the < table > element in html has many many css stylings. inline many others. but you can only do inline because html body of email object in outlook can not see external or linked css file. that only for web applications. also, i do not think you need this
if you use .htmlBODY property, body format is changed automatically i think. microsoft knows though. but the enumeration is right yes
https://docs.microsoft.com/en-us/off...k.olbodyformat
Bookmarks