VBA Find & Replace

前端 未结 1 1948
滥情空心
滥情空心 2021-01-22 05:51

I\'m using Excel VBA to generate word documents from a spreadsheet. I want to find and replace all double paragraphs with single paragraphs as part of the last step.

Bas

1条回答
  •  清酒与你
    2021-01-22 06:10

    Change

    .Execute FindText:="^^p", ReplaceWith:="^p", Replace:=2

    to

    .Execute FindText:="^p^p", ReplaceWith:="^p", Replace:=2

    0 讨论(0)
提交回复
热议问题