Indenting Paragraphs in Text Formatted Email 
Author Message
 Indenting Paragraphs in Text Formatted Email

i'm looking for help writing a VBA macro to indent paragraphs in an
plain text email.

here's the deal:  my default entry format is plain text.  i often send
messages with paragraphs i would like to have indented for emphasis.
to do this, i switch the format from plain text to rich text, select
the paragraphs, click the 'increase indent' button, then switch back
to plain text.  i do this often enough that it warrants a macro. 8)

here's the problem:  i've tried different ways to get Outlook/VBA to
do what i'm asking.  none have worked.  currently, i'm trying:

Public Sub Indent()
    ActiveWindow.Selection.Paragraphs.Ident
End Sub

which returns: "Object dosen't support this property or method".

any ideas, code snippets, or virtual shoulders to cry on would be
appreciated. 8)

thanks,

MJB



Sat, 14 May 2005 11:26:28 GMT  
 Indenting Paragraphs in Text Formatted Email
Outlook version? Word or regular editor?
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
     Microsoft Outlook Programming: Jumpstart
     for Administrators, Power Users, and Developers
     http://www.slipstick.com/books/jumpstart.htm


Quote:
> i'm looking for help writing a VBA macro to indent paragraphs in an
> plain text email.

> here's the deal:  my default entry format is plain text.  i often send
> messages with paragraphs i would like to have indented for emphasis.
> to do this, i switch the format from plain text to rich text, select
> the paragraphs, click the 'increase indent' button, then switch back
> to plain text.  i do this often enough that it warrants a macro. 8)

> here's the problem:  i've tried different ways to get Outlook/VBA to
> do what i'm asking.  none have worked.  currently, i'm trying:

> Public Sub Indent()
>     ActiveWindow.Selection.Paragraphs.Ident
> End Sub

> which returns: "Object dosen't support this property or method".

> any ideas, code snippets, or virtual shoulders to cry on would be
> appreciated. 8)

> thanks,

> MJB



Fri, 20 May 2005 06:39:47 GMT  
 Indenting Paragraphs in Text Formatted Email

Quote:
> Outlook version? Word or regular editor?
> --

Outlook 2000 v 9.0.0.2711 using the regular editor.

MJB



Sat, 28 May 2005 08:43:52 GMT  
 Indenting Paragraphs in Text Formatted Email
And your original question was? (Please take the time to quote the original message manually so that people reading your current response can understand what you're talking about. Otherwise, you may not receive the answer you're looking for.)

The regular editor doesn't problem a lot of formatting options that you can program. Probably the most flexible is to code the HTMLBody property with fully tagged HTML.


Quote:

> > Outlook version? Word or regular editor?
> > --

> Outlook 2000 v 9.0.0.2711 using the regular editor.

> MJB



Sat, 28 May 2005 21:07:11 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Paragraph first line indent

2. Richtextbox: How can I indent the second line upto the end of the paragraph

3. HTML formatted text from a paragraph?

4. Delete range of paragraphs based on start text of paragraphs

5. resetting default first line indent, hanging indent

6. Formatting text from vba for an email

7. format email text with VB5

8. format email text with VB5

9. format email text with VB5

10. format email text with VB5

11. Blank space at beginning of paragraph when Text Interpretation is set to HTML Text

12. pasting a word doc into an email without losing paragraphing

 

 
Powered by phpBB® Forum Software