|
-
Nov 15th, 2007, 02:00 AM
#1
Thread Starter
Lively Member
[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.
-
Nov 15th, 2007, 02:48 AM
#2
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
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 15th, 2007, 04:15 AM
#3
Thread Starter
Lively Member
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.
-
Nov 15th, 2007, 11:56 AM
#4
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 16th, 2007, 12:59 AM
#5
Thread Starter
Lively Member
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?
-
Nov 18th, 2007, 10:21 PM
#6
Thread Starter
Lively Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|