Jegajothy vythilingam
asked on
outlook 2007
When creating a new email in outlook, how do I set the left and right margins. Can I run a macro, if Yes, can u please give me the code and also how to install and run it. Thanks.
https://www.experts-exchange.com/questions/24780115/Microsoft-Outlook-2007.html
Has instrustions as well just above excepted answer.
Read how it works.
Has instrustions as well just above excepted answer.
Read how it works.
In Outlook Goto Tools, Macro, VBEditor, Expand Project1, Click ThisOutlookSession, On Right side paste the code, save and close.
Again Goto Tools,Macro, Security, Set level to Medium or Warning.
Restart Outlook, it will ask to trust macro, then please click yes.
And thats it.
New Email ORReply to some email, and reply or type things normally. This time it will not show marging.
But when you click send.
This macro will add a margin to outgoing email be it a new email or reply or forward.
So you do not need to use template as well.
You can see the effect in your sent items :)
It will set 100px margin, if you need more or less, modify the code and chaneg values for left and right margin.
Again Goto Tools,Macro, Security, Set level to Medium or Warning.
Restart Outlook, it will ask to trust macro, then please click yes.
And thats it.
New Email ORReply to some email, and reply or type things normally. This time it will not show marging.
But when you click send.
This macro will add a margin to outgoing email be it a new email or reply or forward.
So you do not need to use template as well.
You can see the effect in your sent items :)
It will set 100px margin, if you need more or less, modify the code and chaneg values for left and right margin.
Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Item.HTMLBody = "<div style=""margin-left:100px;margin-right:100px;"">" & Item.HTMLBody & "</div>"
End Sub
ASKER
I am more used to characters or in inches. how would I code the equivalent. thanks.
How many characters you want?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
an excellent solution!
Let me post link to it.