View Single Post
 
Old 04-01-2024, 07:26 PM
capitala capitala is offline Windows 7 64bit Office 2003
Advanced Beginner
 
Join Date: Nov 2013
Posts: 38
capitala is on a distinguished road
Default Q: vba code to move from the first paragraph to next

For some reason, I need a vba code (word 2013) that
1) Moves first to the first paragraph
2) Selects the text in that paragraph
3) Do an event.

Afterwards, it should move to the next paragraph .....etc. till the last paragraph.

I've tried this code:

Dim wdoc As Document
Dim Para As Paragraph
Set wdoc = ActiveDocument
For Each Para In wdoc.Paragraphs
do.....
Next Para

But it doesn't move to the next paragraph.

Thanks in advance
Reply With Quote