News, tips, advice, support for Windows, Office, PCs & more
Home icon Home icon Home icon Email icon RSS icon

We're community supported and proud of it!

  • Word (Office 365): Search string longer than 255 characters

    Home Forums AskWoody support Microsoft Office by version Word (Office 365): Search string longer than 255 characters

    Viewing 2 reply threads
    • Author
      Posts
      • #2140038
        WSianrwilson05
        AskWoody Lounger

        Is there a way to get around the 255 character limitation in the Word “Find” function?

        I’ve seen a couple of suggested macros elsewhere, but they don’t seem to work and I don’t have the VBA skills to create a macro to do this.

         

      • #2140090
        MrJimPhelps
        AskWoody_MVP

        255 is an important number in computing, because 255 = 2^8 – 1 (2 to the eighth power, minus 1). Here’s why:
        * At the lowest and most basic level, a computer speaks in “binary”; that is, the only digits it can understand are 0 and 1. The two digits correspond to the “2” in the above formula.
        * When the original IBM PC came out, it was an 8-bit machine. That “8” corresponds to the “8” in the above formula.
        * When a computer is counting at the lowest level, it always starts with zero, not with one. That’s why there is a “- 1” in the above formula.

        Having said all that, if the search algorithm is 8-bit (a possibility, if it hasn’t been modernized), the maximum number of characters it can search on is 255. Some things have not been modernized in order to maintain backward compatibility, and the Word search function might be one of those things. For decades, there have been a huge amount of things with 8-bit limitations in computing, so my guess is that the Word search function is one of those things.

        An example of an 8-bit number would be an IP address. An IP address consists of four 8-bit numbers; hence, the highest possible IP address would be 255.255.255.255. (Well, the highest IP v.4 address).

        Group "L" (Linux Mint)
        with Windows 8.1 running in a VM
        1 user thanked author for this post.
      • #2335012
        Drcard:))
        AskWoody Lounger

        I do not know how to surpass the 255 character limit in the Find box, but you can surpass the 255 character limit in the Replace box.  The replace code ^c will replace the text found with the contents of the clipboard.  The clipboard has no 255 character limit.  In fact, you can use this code to replace text with an image.

         

        Drcard:))

    Viewing 2 reply threads

    Please follow the -Lounge Rules- no personal attacks, no swearing, no politics or religion.

    Reply To: Word (Office 365): Search string longer than 255 characters

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