Solved

Split A single RTF File into Several RTF Files

Posted on 2004-08-25
6
886 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
Comment Utility
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
Comment Utility
thanks sam.
0
 
LVL 9

Expert Comment

by:prifre
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 6

Accepted Solution

by:
DRJ earned 500 total points
Comment Utility
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
Comment Utility
Did DRJ's post give you what you need Sunil?
0
 

Author Comment

by:sunilramu
Comment Utility
Thanks you all.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Nice table. Huge mess. Maybe this was something you created way back before you figured out tabs or a document you received from someone else. Either way, using the spacebar to separate the columns resulted in a mess. Trying to convert text to t…
This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

762 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

13 Experts available now in Live!

Get 1:1 Help Now