Solved

Split A single RTF File into Several RTF Files

Posted on 2004-08-25
6
1,077 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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 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 shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Suggested Courses

630 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