Solved

Split A single RTF File into Several RTF Files

Posted on 2004-08-25
6
954 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

785 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