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 / November 2006

Tip: Looking for answers? Try searching our database.

How to convert numbering & headings to string variable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
krklka - 02 Nov 2006 12:54 GMT
Hi,
I'm writing extraction tool for specificactions written in word
document under strict rules . Then I need to create some kind of TOC
including chapter numbers but consisting also pointers to headings to
be able to link the data by special manner in Excel later on.  Till now
no sucess with :
1)  .ConvertToText  method
2)  . Copy -> Paste special (as text )
3 )   wrd.Selection.Range.ListFormat.ListString  ( here the heading is
selected and function returns "" )

I can select each heading ( used  for  copy/paste ) . Only indent is
possible to get:

Selection.Range.ListFormat.ListIndent

so I'm thinking about to store indent and later on to generate new
numbering ( based on indent & order) coresponding with numbering in
word doc.

Any other ideas ?  

Regards,
K.
Jezebel - 03 Nov 2006 04:22 GMT
The ListString property works in general: if it's returning an empty string,
then your problem lies elsewhere. Are you sure you're referring to the right
paragraph? As a test, auto-number the first paragraph of the document and
try this in the Immediate window --

? ActiveDocument.Paragraphs(1).Range.ListFormat.ListString

> Hi,
> I'm writing extraction tool for specificactions written in word
[quoted text clipped - 20 lines]
> Regards,
> K.
 
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.