Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 2K - More help on TOC into .csv needed

Status
Not open for further replies.

logius

Programmer
Aug 30, 2001
175
US
Alright, as it turns out, I had to also generate a Table of Contents for the document via code, and I've done that, and the additional code that Dreamboat and Tyrone gave me works beautifully on the generated TOC (thread68-143477). HOWEVER, I need a way to split the entries into 3 columns.
The individual entries look something like this:
Code:
3.3.4 Dry run of testing..................... 9
And I need to get the "3.3.4", "Dry run of testing", and "9" in to separate entries into a .CSV file. I'm looking into doing this, but the macro has to be done by tomrrow (being an intern isn't fun), and I don't have the time to do the research I need.
 
Uhhhh, actually, I tried that, and it didn't work. I think the problem is in the
Code:
wdSeparateByTabs
part.
 
Okay, instead, I decided to loop through the document and insert the commas manually (did a
Code:
Selection.MoveUntil
manipulation) for each line. Thanks for the help, Dreamboat. :) ----------------------------------------
If you are reading this, then you have read too far...

lightwarrior@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top