Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Split A single RTF File into Several RTF Files

Posted on 2004-08-25
6
Medium Priority
?
1,128 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
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 
LVL 6

Accepted Solution

by:
DRJ earned 1500 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Introduction Authors who set out to write any sort of lengthy piece for online submission—be it a long question or comment on a technical form, an article, or a substantial blog entry—often find it useful to work up a draft in an editor other t…
It is often necessary in this forum and others to illustrate Word fields as text with the field delimiters replaced with the curly brackets that the delimiters resemble when field codes are being displayed on the document. This means that the text c…
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
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…
Suggested Courses

688 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