![]() |
#3
|
||||
|
||||
![]()
Try:
Code:
Sub Demo() Dim Rng As Range, i As Long, p As Long, StrOut As String p = 1 For Each Rng In ActiveDocument.Range.SpellingErrors With Rng If .Information(wdActiveEndPageNumber) > p Then If i > 0 Then StrOut = StrOut & vbCr & "Pg: " & p & "-" & i p = .Information(wdActiveEndPageNumber): i = 1 End If Else i = i + 1 End If End With Next StrOut = StrOut & vbCr & "Pg: " & p & "-" & i MsgBox StrOut End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What's with the New Spell Check? | CrossReach | Word | 1 | 01-16-2019 06:34 AM |
Is there a way to display a count of number of emails I sent today? | Yirg | Outlook | 0 | 01-20-2015 05:28 AM |
Spell Check | HondaS600 | Office | 5 | 08-26-2013 01:04 PM |
![]() |
vthomeschoolmom | Excel | 2 | 07-25-2013 06:17 AM |
![]() |
CommoMP | Word | 5 | 05-30-2011 05:40 PM |