How do you indent when inserting a paragraph

D

Davey

I'm able to insert the new paragraph. However I can't get the entire
paragraph to be "indented". I need it to be indented for formating purpose
as I want it to appear as a sub paragraph of the one I'm inserting it
beneath. Also I noticed that when i insert the paragraph it's adding
numbering, I don't want the numbering to appear. Is there a way to prevent
this? Here is the code I have to insert the paragraph. This works fine but
it's not indented. I need the entire inserted range to be indented.

If myRange.Text Like "St Louis*" Then
.Collapse direction:=wdCollapseEnd
.InsertParagraphAfter
.Text = myRange.Text

Thanks
 
E

Ed

Davey: Given this post and your earlier one, you might want to go into the
VBA Help files and start with "Styles Collection Object", and navigate
through that and the "Style Object", which is linked in the Collection file.
These will show you how to define and add a style, which can include
numbering, font, formatting, and indentation, and then apply it to a given
range.

Ed
 
D

Davey

Thanks Ed.
Ed said:
Davey: Given this post and your earlier one, you might want to go into the
VBA Help files and start with "Styles Collection Object", and navigate
through that and the "Style Object", which is linked in the Collection file.
These will show you how to define and add a style, which can include
numbering, font, formatting, and indentation, and then apply it to a given
range.

Ed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top