View Single Post
 
Old 01-16-2016, 01:38 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by PRA007 View Post
Ok. I tried but I think The problem is with paragraphs.

Recorded macro and found that
Code:
.Style = ActiveDocument.Styles("Heading 2")
is the key to success.
What is the problem with paragraphs?

Your code could be reduced to:
Code:
.Style = "Heading 2"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote