Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2006

Tip: Looking for answers? Try searching our database.

Navigate to a specific numbered paragraph

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mamil@bezeqint.net - 30 Sep 2006 19:54 GMT
Hi Gurus.

I'm trying to automate word to perform the following tasks:
1. Open a given document (no problem)
2. Navigate to paragraph numbered 4.1
3. Get its content

I have no idea how to perform steps 2 & 3.
Can you help me with that?

Thanks!
Helmut Weber - 30 Sep 2006 20:15 GMT
Hi,

maybe you're searching for something like this:

Sub test3223()
Dim rPrg As Paragraph
For Each rPrg In ActiveDocument.ListParagraphs
  If rPrg.Range.ListFormat.ListString = "2.1" Then
     rPrg.Range.Select
     MsgBox rPrg.Range.Text
  End If
Next
End Sub

HTH

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.