|
-
Apr 27th, 2006, 10:20 PM
#1
Thread Starter
New Member
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.
-
Apr 28th, 2006, 02:47 AM
#2
Hyperactive Member
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.
If my post has been helpful, then please rate it accordingly...
If it has solved your question(s), then don't forget to mark the thread as "[Resolved]"... thank you.
-
Apr 28th, 2006, 03:47 AM
#3
Thread Starter
New Member
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!
-
Apr 28th, 2006, 06:12 AM
#4
Re: Variable characters in need of deletion and more
Word VBA question moved to Office Development
-
Apr 28th, 2006, 06:59 AM
#5
New Member
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....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|