Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PPT 2007 single spacing (Ctrl+1)

Status
Not open for further replies.

dcompto

Technical User
Jul 5, 2001
751
US
In PowerPoint 2007, Microsoft took away the keyboard shortcuts for line spacing:

Ctrl+1 (single)
Ctrl+2 (double)
Ctrl+3 (triple)
Ctrl+5 (1.5)

What would be the equivalent of Word 2007's:

Selection.ParagraphFormat.LineSpacingRule = wdLineSpaceSingle

in PowerPoint 2007?

TIA!
 
Have you tried the macro recorder to see what syntax that generates?

Never knock on Death's door: ring the bell and run away! Death really hates that!
 
Well, it may be staring me in the face, and I just don't see it, but...

There doesn't seem to be a macro recorder in PowerPoint 2007!
 
Can someone assist? I have figured out everything except the macro leaves the dialog box open. I don't know what to look for. I've tried "visible" and "hide", but haven't found the proper command.

Here is my code...
Code:
Sub LineSpacing1()
   ' Single Line Spacing

With ActiveWindow.Selection.TextRange
    With .ParagraphFormat
        .LineRuleWithin = msoTrue
        .SpaceWithin = 1
    End With
End With

End Sub
Thanks so much.
 
I've tried your code and it seems to work OK. I select some text and run the macro and it put spaces in. What dialog box are you speaking about? What exactly is the problem?
 
The Paragraph Dialog Box stays open after the macro ends.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top