Hi all,
I have automated a daily report (which earlier involves some sort manual work) by which user would be able to send(through e-mail) the report to all the intended recipients on click of a button.
In addition to my code, I have taken the reference of Ron's code to send the report content in html format (pasting the content in the body of the email). Below here is the reference I am talking about.
http://www.rondebruin.nl/mail/folder3/mail4.htm
Everything seems to work properly. But when the excel table gets pasted in the body of the outlook and outlook e-mail window opens, I could see there is a significant difference in the Col width in comparison to what it is there in the excel sheet.
The code actually opens up a TempWB(please see the above link for reference) and paste the data from the original workbook. I have run through the code line by line and I saw that in the TempWB data gets pasted in the same format as it there in the original workbook, before it gets published in html format.
So I am not able to understand why the Col width changes while it comes in the outlook.
I understand it is little difficult to provide the solution for this problem without looking at the entire code that I have written (in addition to Ron's code) in order to see what exactly is happening. However, I just wanted to check in if this is something common (because of some reasons which I am not aware of) that you might understand and guide me in the right direction.
However, I will upload my workbook (with dummy data) either today late evening or tomorrow early morning.
Thank you for your assistance in advance.
Kaushik
I have automated a daily report (which earlier involves some sort manual work) by which user would be able to send(through e-mail) the report to all the intended recipients on click of a button.
In addition to my code, I have taken the reference of Ron's code to send the report content in html format (pasting the content in the body of the email). Below here is the reference I am talking about.
http://www.rondebruin.nl/mail/folder3/mail4.htm
Everything seems to work properly. But when the excel table gets pasted in the body of the outlook and outlook e-mail window opens, I could see there is a significant difference in the Col width in comparison to what it is there in the excel sheet.
The code actually opens up a TempWB(please see the above link for reference) and paste the data from the original workbook. I have run through the code line by line and I saw that in the TempWB data gets pasted in the same format as it there in the original workbook, before it gets published in html format.
So I am not able to understand why the Col width changes while it comes in the outlook.
I understand it is little difficult to provide the solution for this problem without looking at the entire code that I have written (in addition to Ron's code) in order to see what exactly is happening. However, I just wanted to check in if this is something common (because of some reasons which I am not aware of) that you might understand and guide me in the right direction.
However, I will upload my workbook (with dummy data) either today late evening or tomorrow early morning.
Thank you for your assistance in advance.
Kaushik