S
Saad
Hi
I am not sure if this question was asked before, tried searching the forum
but couldn’t find a relative topic.
Basically I have a huge document consisting of abstracts for a conference. I
have been asked to make individual file of each abstract, which means to copy
paste each abstract from the main document into a new document. I was hoping
that I can do it using VBA and avoid the manual work. Now the real issue is
there is no text to identify start of an abstract, only way is to identify it
is by its title which is Bold Times New Roman 12.
The algorithm I am thinking of is to parse this document and look for the
title, which will be basically to look for a line which is Bold Times New
Roman 12 and then keep selecting the text till I find title of the next
abstract means another line with Bold Times New Roman 12, open a new document
and paste the selection into the new doc and move on to the next abstract.
Or I can make a document like a TOC which lists all the abstract titles and
from this document read two adjacent titles, select all the text in between
those two lines from my main document and paste into a new document and move
on to the next title.
Or maybe the third way is to manually put tags at the start and end of an
abstract and use those tags to select text in between and create new
documents?
So which method you guys think will be easier to implement and ofcourse some
sample code will help, since this is the first time I am using VBA? Thanks
for the help
I am not sure if this question was asked before, tried searching the forum
but couldn’t find a relative topic.
Basically I have a huge document consisting of abstracts for a conference. I
have been asked to make individual file of each abstract, which means to copy
paste each abstract from the main document into a new document. I was hoping
that I can do it using VBA and avoid the manual work. Now the real issue is
there is no text to identify start of an abstract, only way is to identify it
is by its title which is Bold Times New Roman 12.
The algorithm I am thinking of is to parse this document and look for the
title, which will be basically to look for a line which is Bold Times New
Roman 12 and then keep selecting the text till I find title of the next
abstract means another line with Bold Times New Roman 12, open a new document
and paste the selection into the new doc and move on to the next abstract.
Or I can make a document like a TOC which lists all the abstract titles and
from this document read two adjacent titles, select all the text in between
those two lines from my main document and paste into a new document and move
on to the next title.
Or maybe the third way is to manually put tags at the start and end of an
abstract and use those tags to select text in between and create new
documents?
So which method you guys think will be easier to implement and ofcourse some
sample code will help, since this is the first time I am using VBA? Thanks
for the help