.:: CODE SNIPPET ::.

"Your time is limited, so don't waste it living someone else's life"

Category Archives: VB

New paragraph in MS Word VBA


In a MS Word document, how can you do to create a new paragraph with a VBA? As for me, there are two simple ways.

  • Type a new paragraph from the selection: Selection.TypeParagraph
  • Find and replace any signal with a syntax ‘^p’

In this simple snippet, i focus on the second one. The main difference between the two ways is how to manipulate it. The first one is also a alternative way for the second way in case you want to perform to new a paragraph manually. The replacement using syntax you just declare it, then the script will replace it automatically once the signal is found.

ms word snippet

ms word snippet


Read more of this post

%d bloggers like this: