ALign LEFT content of an email

  • Thread starter Thread starter nguyenxuanson
  • Start date Start date
N

nguyenxuanson

Dear groups members
I could not find the right property which eable me to LEFT align the
content of an Outlook mail which is created programatically.
Could someone help me
XS
 
I have use F2 in VBA editor to have a look at all properties of
MailItem but it seems that Microsoft has not made Align available as
property?
Best regards
XS
 
What exactly are you trying to do? In what version of Outlook? In what
message format? In what mail editor?
 
If the format is HTML, then you need to use HTML tags to perform any desired
formatting. The first step will be for you to examine the raw HTML in the
TempFile file that the RangeToHTML procedure creates. Once you've done that,
you'll have a better idea of what the structure of the HTML is and where you
might need to change the codes. It might be possible, for example, simply to
use Replace() to add align= attributes to <td> or <p> tags.
 
Dear Sue
Thank very much for the point.
I have seen the htm code and pinpoint the "word" to be changed: I
should replace "center" by "left" here.

<!----------------------------->
<!--START OF OUTPUT FROM EXCEL PUBLISH AS WEB PAGE WIZARD -->
<!----------------------------->

<div id="Book9_26586" align=center x:publishsource="Excel">


Could you please give me the advice how can I open and use the
Replace() function for this task.
XS
 
I ve just google and find something with the key words "Replace() File
VBA"
Thanks Sue
XS
 
Back
Top