Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-18-2011, 05:43 AM
macropod's Avatar
macropod macropod is offline How to identify the paragraph number you are on Windows 7 32bit How to identify the paragraph number you are on Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,523
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply



Similar Threads
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
How to identify the paragraph number you are on Way to identify what image format has been inserted in PPT? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 06:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft