![]() |
|
#1
|
|||
|
|||
![]()
Hello
Currently struggling with something that I'm sure is obvious but Googling the question has not yielded success! ![]() I'm writing a macro which will select ranges of text from a large document and paste it into a new one. I want to do this by selecting a particular paragraph number to copy. However, I can find no way of easily identifying which the paragraph number I am on. At the bottom of the Word page it identifies the line number, word number, section number, etc, but there is no paragraph number identifier. Anyone know how to find this out? Thanks |
#2
|
||||
|
||||
![]()
Hi Saneman,
Try: Code:
Sub Demo() Dim Rng As Range With ActiveDocument Set Rng = .Range(0, 0) Rng.End = Selection.Paragraphs.First.Range.End MsgBox Rng.ComputeStatistics(wdStatisticParagraphs) End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Identify "Propose New Time" meeting responses in VBA, and how to response with them | frilian | Outlook | 0 | 09-02-2010 07:48 AM |
![]() |
Pantucci | PowerPoint | 1 | 08-20-2010 12:03 AM |
how to identify the word files created using Windows or Mac Operating System? | mariaprabudass | Word | 0 | 08-06-2010 05:52 AM |
C# API to identify the uncommitted changes in Excel and Word document? | althafuddeen | Excel | 0 | 04-06-2010 07:40 AM |
Paragraph | cloa513 | Word | 1 | 12-29-2009 02:20 AM |