Results 1 to 6 of 6

Thread: [2005] Insert Text Into Outlook 2003 Email

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    111

    Question [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.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    111

    Question 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.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    111

    Question 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?

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    111

    Question 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
  •  



Click Here to Expand Forum to Full Width