View Full Version : Solved: Can VBA Select a Certain Paragraph?
Jacob Hilderbrand
05-09-2006, 02:01 PM
With VBA, can I select a specific paragraph. For example can I select paragraph 3?
Actually I want to delete it, so if there is a direct way w/o selecting that would be fine.
Thanks
fumei
05-09-2006, 07:18 PM
ActiveDocument.Paragraphs(3).Range.Delete
fumei
05-09-2006, 07:21 PM
Oh, and no selection is made. Uh, but be sure that you have the count correctly. If you have those - hmmmmmm - "extra" paragraphs people use to make space between paragraphs with text....they count. Of course if you use Styles that would not be an issue.
Jacob Hilderbrand
05-09-2006, 10:05 PM
Thanks, that will work. :)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.