0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VBAでWordの文章を操作

Last updated at Posted at 2025-03-19

Paragraphsは段落です(おそらく改行文字終わり)。
Sentenceは文です(恐らく。!?など終わり)。

Paragraphs.Range.Text = "文字列"

は改行文字を踏みつぶし、文章の構成を壊します(上書きモード)

なので、VBAでWordの差し込み印刷を行いたい場合は、

  .Range.InsertBefore "追加するテキスト"
  .Range.InsertAfter "追加するテキスト"

で、すでにある段落や行の前後に文字列を挿入してください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?