Results 1 to 5 of 5

Thread: Variable characters in need of deletion and more

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    2

    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.

  2. #2
    Hyperactive Member
    Join Date
    Feb 2003
    Location
    Grenada
    Posts
    346

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    2

    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!

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Variable characters in need of deletion and more

    Word VBA question moved to Office Development

  5. #5
    New Member
    Join Date
    Apr 2006
    Posts
    10

    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
  •  



Click Here to Expand Forum to Full Width