Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    L.A., California, USA
    Posts
    267
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Document has box pox -- where do they come from? (Word 2000)

    I've attached part of a document to show you the little boxes that are appearing arbitrarily throughout. We don't know where they come from, but we see them in documents periodically. You can't search to them because you can't paste them into the Find string. The only way we know to get rid of them is to scroll through the entire document manually and delete them individually.

    Has anyone seen these before?

    We're using Word 2000 (9.0.6926 SP-3) on Windows 2000 Professional, Version 5.0.2195, Service Pack 3, Build 2195.

    Russ
    Attached Files Attached Files

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Document has box pox -- where do they come from? (Word 2000)

    They seem to be the thing you get when you type Alt+0015 (using the number pad). But this isn't searchable, so I guess that doesn't help much. My guess is that it's an artifact of the disintegration of a Word control code of some kind. I don't see the pattern, but then, I don't know what this document is supposed to look like.

  3. #3
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Document has box pox -- where do they come from? (Word 2000)

    I agree with Jefferson on the Ascii code but you can search and replace these characters by finding ^15 and replacing with nothing.

    I don't know how they get there by themselves but they are easy to get rid of.

    The macro I use to figure out the ascii and unicode of first selected character is below.
    Sub temp1()
    MsgBox "Ascii: " & Asc(Selection.Characters(1).text) & vbCr & "Unicode: " & AscW(Selection.Characters(1).text)
    End Sub
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  4. #4
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    L.A., California, USA
    Posts
    267
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Re: Document has box pox -- where do they come from? (Word 2000)

    The document I attached was several selected portions of a larger document, so it didn't show you an obvious pattern of where the boxes tended to appear. They mostly seem to occur at the beginning of something -- a paragraph, a page, but not always, since sometimes they come right in the middle of a paragraph. However, on several that occurred in the middle of a paragraph, they appeared at the beginning of a new page where the paragraph had broken (i.e., the box was the first character on the new page).

  5. #5
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    L.A., California, USA
    Posts
    267
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Re: Document has box pox -- where do they come from? (Word 2000)

    Yo, Andrew!! I was just talking to the attorney who had the problem document and told him about your solution. He was able to do a Find/Replace and get them out. Thanks so much. We've been struggling with this for a long time.

    Russ

  6. #6
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    L.A., California, USA
    Posts
    267
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Re: Document has box pox -- where do they come from? (Word 2000)

    Andrew, you helped me with this problem two months ago, but I can't figure out how to make your solution work on this latest occurrence.

    I've attached a 3-line document that has a box in it (before the word "impair"). I used the macro you gave me to identify its Ascii value (63) and Unicode value (-557), but I don't know what to do with those values. I tried searching to ^63 and -557, but no luck. What am I doing wrong? <img src=/S/confused.gif border=0 alt=confused width=15 height=20>

    Russ
    Attached Files Attached Files

  7. #7
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Document has box pox -- where do they come from? (Word 2000)

    Russ

    I don't think my solution does work with this current problem and I don't know why [puzzled]

    But there is a search and replace solution. You can copy this object and paste it into the find box and then search (and replace) will find it.

    I am using Word 97 on this machine so I havent tested this on Word 2000 or 2002 but I expect them to be the same.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  8. #8
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    L.A., California, USA
    Posts
    267
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Re: Document has box pox -- where do they come fro

    Andrew,

    Unfortunately, those boxes won't copy into the Find string. That's why I needed an alternate solution. I thought we had found the cure-all in your macro, but I guess it doesn't always apply. Thanks for getting back. --Russ

  9. #9
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Document has box pox -- where do they come fro

    In my version of Word on this machine (Word 97 SR2) copying the box to the find does work. Are you trying to do this in the application or by using VBA code?

    I don't know why that would have changed in Word 2000. Do you have access to an older version of Office to check whether its possible there?

    I will test this on another machine (Word 2002) tonight and let you know if I have any luck.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  10. #10
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Document has box pox -- where do they come fro

    Hi Andrew:
    I tested it on a Word 2000 machine & it didn't work. I tried to search using copy & paste, ^63, ^063, & ^0063. No luck.

  11. #11
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Document has box pox -- where do they come from? (Word 2000)

    I think we need Klaus Linke to weigh in here. I'm sure at one point he explained where the negative values come from and how to make them useful, but of course, I can't access it right now.

    Even if I don't understand how Word handles Unicode strings, it does seem to understand this, which I threw into the Immediate window and it did lock on to the critters:

    selection.Find.Execute chrw(-557)

    If you record a Replace All macro with some other character, open the macro editor and use this code in place of whatever you recorded with, perhaps that will do the trick.

  12. #12
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Document has box pox -- where do they come from? (Word 2000)

    Hi Russ

    I believe that this "anomoly" can occur when a character is inserted using Insert -> Symbol. The box shows up as the D3 FD pair in a hex editor, or 211 253 decimal. This is out of character (pun <img src=/S/grin.gif border=0 alt=grin width=15 height=15>) with Word's method of storing other characters, in which the second byte is always 00.

    Don't ask me why, but I think this is the root of the problem. It used to create problems in the RTF for the Windows Help compiler, and one had to paste symbols from the Windows Character Map rather than use the Insert -> Symbol. And asc values 40, 63 and 95 are apparently the offenders.

    Alan

  13. #13
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    L.A., California, USA
    Posts
    267
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Re: Document has box pox -- where do they come fro

    Thanks, guys. When I get to work today, I'll fiddle with some of what you mentioned.

    Andrew, I have Word 98 on a Mac here at home and the box won't copy into the Find string on it either. Odd that you can do it in Word 97.

  14. #14
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Document has box pox -- where do they come from? (Word 2000)

    >> By the way, how do you bold something in our posts here in Woody's Lounge?

    See <!help=19>Help 19<!/help>. You can either use the 1-Click TagPanel that is available to the right of the subject box when you're creating a post or reply, or type the "tags" yourself. For instance, to make a word bold, put <!t><!/t> before it and <!t><!/t> after it: <!t><!/t>this<!t><!/t> becomes this.

  15. #15
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    L.A., California, USA
    Posts
    267
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Re: Document has box pox -- where do they come from? (Word 2000)

    Wow, Hans, you are quick. Thanks again.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •