[2005] Insert Text Into Outlook 2003 Email
I am currently trying to write a command button that will allow a user to insert a hyperlink into a email being composed by MS Outlook 2003. As "Use Word As Email Editor" is not selected, the hyperlink fuction in disabled. I have searched google etc to no avail.
Re: [2005] Insert Text Into Outlook 2003 Email
Automate Outlook and format the body of the email as HTML. Then its just adding the appropriate html code like used on a webpage to add/display the link.
Outlook FAQ item that should help get you started.
http://vbforums.com/showthread.php?t=402083
Re: [2005] Insert Text Into Outlook 2003 Email
I've looked at doing it that way but I was thinking more of along the lines where the user has already started composing an email, gets to a certain point and decides to put in multiple hyperlinks.
I have the code so that when the user clicks on the custom designed menu add-in and selects "Insert HyperLink", an input box will take the path and format it as html accordingly. The only thing I can't figure out is how to take that input and paste it to the already composed email.
Re: [2005] Insert Text Into Outlook 2003 Email
Ok, if its a email in progress of being written then you still wont paste it in as you will need to iterate through the Inspectors to obtain a object reference to the desired email instance if more then one is open. Then you can manipulate the item.
Re: [2005] Insert Text Into Outlook 2003 Email
Might have to come back / scrap the idea of manipulating the item as I need to make it as easy as possible for the end user. Is it possible to compose a one off email with word as the editor without affecting / modifying outlook's default settings?
Re: [2005] Insert Text Into Outlook 2003 Email
Does anyone have any examples of using Outlook's Inspector to insert text into an already composed email? Iv'e tried searching google and found some example in VB but have no idea on how to convert them.