Shaolin666
09-13-2015, 03:55 AM
Hi,
I have a word document with hundreds of pages and thousands of paragraphs. The paragraphs all conform to the same format of a reference number followed by a date and a title in quotations all in parenthesis, followed by a passage of text i.e.
456 (M 21-09-15 "Title here") Passage of text starts here.
457 (T 22-09-15 "another title here") Another different passage of text here of differing length.
458 (T 24-09-15 "yet another title here") Another passage starts here.
How would I go about reformatting this via vBA such that it is now represented in the following format, stripping out the letter M,T,W,T,F,S,S for days of the month and also bolding the headings:
Title Name: Title here
Reference: 456
Date: 2015-09-21
Passage: Passage of text starts here.
Title Name: another title here
Reference: 457
Date: 2015-09-22
Passage: Another different passage of text here of differing length.
Title Name: yet another title here
Reference: 458
Date: 2015-09-24
Passage: Another passage starts here.
Any help appreciated.
Kind regards
Shaolin666
I have a word document with hundreds of pages and thousands of paragraphs. The paragraphs all conform to the same format of a reference number followed by a date and a title in quotations all in parenthesis, followed by a passage of text i.e.
456 (M 21-09-15 "Title here") Passage of text starts here.
457 (T 22-09-15 "another title here") Another different passage of text here of differing length.
458 (T 24-09-15 "yet another title here") Another passage starts here.
How would I go about reformatting this via vBA such that it is now represented in the following format, stripping out the letter M,T,W,T,F,S,S for days of the month and also bolding the headings:
Title Name: Title here
Reference: 456
Date: 2015-09-21
Passage: Passage of text starts here.
Title Name: another title here
Reference: 457
Date: 2015-09-22
Passage: Another different passage of text here of differing length.
Title Name: yet another title here
Reference: 458
Date: 2015-09-24
Passage: Another passage starts here.
Any help appreciated.
Kind regards
Shaolin666