CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2011
    Posts
    1

    Unhappy [Outlook] Insert Text At Start of Every Paragraph

    I have a probably unique situation. I want to write something that automatically runs in Outlook such that whenever I write an e-mail (either by hitting on the New Message button, or replying, or whatever) every paragraph I write starts with a static block of text. So, I need something that at the start of every paragraph (which I assume is just any line break followed by characters, because I don't need this text to show on blank lines), the word "PRIVATE" appears.

    Ideally, I'd want this to happen dynamically. I.E. when the user is writing an e-mail, he/she hits enter twice to start a new paragraph and when he/she hits the first keystroke of the paragraph (say "A" for example), he gets "PRIVATE A".

    Can this be done? Any advice, instruction, guidance, or links as to how?

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: [Outlook] Insert Text At Start of Every Paragraph

    Look up Visual Tools for Office
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: [Outlook] Insert Text At Start of Every Paragraph

    Have a look into Creating AddIns for outlook

Tags for this Thread

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

Featured