Archive for the ‘VB’ Category

New paragraph in MS Word VBA

September 19, 2014 Leave a comment

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…

Categories: VB Tags: , ,
%d bloggers like this: