PDA

Click to See Complete Forum and Search --> : Variable characters in need of deletion and more


arielle
Apr 27th, 2006, 10:20 PM
1) I have a large document containing lots of variable characters within square brackets(see below) I need a macro function to delete all the carachers within the brackets. All of them!

Samples:
['aenottdain, -nad-]
[ainoma'listik]
[,8eno:'gaenik]
...and they vary tremendously. The good news is they are in square brackets so I guess they may be deleted without affecting the rest of the document.

2)..and if I can dare to ask for more...is it possible to have all the words before the bracket [ (no matter how long they are) in bold and then everything after the same bracket [ to go one line bellow, and then finally to move onto next paragraph and do the same...and this to go on automatically for the rest of the document.


Present status:
xxxx yyyy [ ] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
xxxxxxx-yyy [ ]xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.

I need the above to go like this
xxxx yyyy
[ ] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
(space)
(space)
xxxxxxx-yyy
[ ]xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.

By the way, I'm trying to do a sort of glossary and your help cand save me lots of time and headaches.
cheers.

Protocol
Apr 28th, 2006, 02:47 AM
First thing first...

I thought I understood what it was you were trying to achieve, but I'm not so sure anymore.

Correct me if I'm wrong... but the "document" you're referring to isn't a simple text file, but in fact an MS Word document right?

Because deleting those said "variables" for a text / input file is a lot easier than doing it with a Word document (provided it is possible).

If it is an RTF document though, I might be able to be of more assistance.

arielle
Apr 28th, 2006, 03:47 AM
Yes, the document is a MS word document. I wonder myself if it's possible. Thank you for trying to help me :) Much appreciated.

Cheers!

Hack
Apr 28th, 2006, 06:12 AM
Word VBA question moved to Office Development

Solutions4UrProblems
Apr 28th, 2006, 06:59 AM
If that word file contains only text(without images) then i have a solution in VB.
But I can't help u in changing the font(Bold).

Revert back soon....