Variable characters in need of deletion and more
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.
Re: Variable characters in need of deletion and more
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.
Re: Variable characters in need of deletion and more
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!
Re: Variable characters in need of deletion and more
Word VBA question moved to Office Development
Re: Variable characters in need of deletion and more
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....