• Square as character (Office 2000)

    Author
    Topic
    #388448

    I have a document where at the end of some words I get this funny character in the form of a square. How can I find out what exactly that is? I tried to copy/paste it to the Find/Replace box to replace them with a space or something, but it doesn’t even get copied over, like it didn’t exist.
    I need to delete these characters, but if I don’t know what they are, how can I delete them? I have hundreds in this document, so it’s impossible to go line by line and remove them one by one. Any suggestions?
    You can see the character attached to the end of a highlighted word, but others are also visible.

    Thanks,
    K

    Viewing 1 reply thread
    Author
    Replies
    • #682054

      The extension is just visible in the screenshot – it’s not a Word document, but a text file produced by another application, I suppose. The squares are probably line feeds or carriage returns.

      Try the following:

      • Make a copy to be on the safe side.
      • Open the Replace dialog (Ctrl+H)
      • Type ^13 into the Find Box
      • Type the code for a paragraph mark ^p into the Replace box
      • Click Replace All
      • If nothing is found, type ^10 into the Find box instead of ^13
        [/list]If that creates too many empty lines, undo it, and try leaving the replace box empty, then Replace All.
      • #682096

        Ok, thanks, I’ll give it a try and if it doesn’t work, will post back.

        Regards,
        K.

        • #682245

          Alternatively:
          Select one of the squares.
          Switch to the Visual Basic Editor (Alt+F11).
          Activate the Immediate window (Ctrl+G).
          Type ? Asc(Selection) and press Enter.
          This will display a number; memorize this.
          Switch back to Word.
          Activate the Replace dialog (Ctrl+H).
          Type ^ followed by the number you memorized in the Find What box.
          Replace by either ^p or by nothing.

    • #682196

      In the event that these are not line feeds, and the characters only occur after numbers that have the pattern you showed, you could try a Find/Replace like this.

      Using wildcards
      Find: (T[0-9]{8})[!^13^l,./?;:”//$/#]
      Replace: 1

      This will find all 8 digit numbers starting with T & remove the next character that is not a paragraph mark, line feed, comma, period, question mark, semi-colon or colon, quote, forward slash, $, or #. Make a backup copy first, in case you have other patterns that this affects.

    Viewing 1 reply thread
    Reply To: Square as character (Office 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: