Solved

Split A single RTF File into Several RTF Files

Posted on 2004-08-25
6
928 Views
Last Modified: 2012-06-21
Hi Experts,

Will I be able to split a single word file into several files based on heading styles.

Here is what i want to do,
I have to take each individual title from the table of contents and read that section of file from the document and store it in a new file named as the title.

thanks
Sunil
0
Comment
Question by:sunilramu
6 Comments
 
LVL 15

Expert Comment

by:will_scarlet7
ID: 11895339
Sunil,
    I believe what you want to do is possible, but I don't have much time right now to get into it.
    If no one answers this question today I'll see if I can offer some advice tomorrow.

God bless!

Sam
0
 

Author Comment

by:sunilramu
ID: 11896380
thanks sam.
0
 
LVL 9

Expert Comment

by:prifre
ID: 11897143
Hi,

Somehow what you need to do...
1) Turn on Macro Recording
2) Do once what you want to do
3) Go to Tools->Macro->VB Editor and look at the code that MS Word wrote
4) Modify the code as needed         <----the trickier part
5) Run - it should fix the problem

I could perhaps write the code, but will_scarlet7 is probably even a better MSWVB-hacker.

But if you dont get/find a solution from some VB hacker at EE, I might try...

with a smile
/prifre
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 6

Accepted Solution

by:
DRJ earned 500 total points
ID: 11901242
Hi

We have something like that in our knowledge base here:

http://www.vbaexpress.com/kb/getarticle.php?kb_id=140

It will save all the Heading 1 style groups as a seperate doc with the heading as the name of the file. It saves as .doc, but you can change that to .rtf if you want.
0
 
LVL 15

Expert Comment

by:will_scarlet7
ID: 11905317
Did DRJ's post give you what you need Sunil?
0
 

Author Comment

by:sunilramu
ID: 11906562
Thanks you all.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now