![]() |
#1
|
|||
|
|||
![]()
Hi,
I'm trying to create a macro in outlook that will change the paragraph line spacing (and font name and size of text if possible). Below is the code I've been playing around with, but it's not working 100% and/or it fails @ this line of code "Paragraph.LineSpacing = LinesToPoints(1.3)". Don't know what I'm doing wrong. Any help would be much appreciated. Code:
Sub LineSpacing() Dim objOL As Outlook.Application Dim sel As Object Set objOL = Outlook.Application Set sel = objOL.ActiveInspector().WordEditor.Application.Selection For Each Paragraph In sel.Paragraphs Paragraph.LineSpacingRule = wdLineSpaceMultiple Paragraph.LineSpacing = LinesToPoints(1.3) Next End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help on Outlook 2010 Macro | rainpuppy | Outlook | 4 | 02-04-2013 12:44 AM |
Word 2010 will not let me change alignment on specific paragraph | garrisonsdad | Word | 6 | 12-19-2012 09:23 PM |
Macro help outlook 2010 | seanchad | Outlook | 0 | 06-28-2012 02:49 AM |
Don't indent the fist line of the first paragraph after a style change | Inspirement | Word | 1 | 04-08-2012 05:30 AM |
![]() |
siouxnami | Outlook | 4 | 01-26-2012 12:24 PM |