Copyinf in Word 2004

G

guanzhi

I am running the latest update of Word 2004 on 10.4.8.
Evytime I highlight and copy a phrase in a document, brackets
appear around the highlighted portion. There is no way to
delete the brackets without deleteting the whole phrase. If
I try to delete just a portion, the bracket moves to another
position and I am left with the same problem. I have taken
to deleting and pasting (when pasting, the brackets are
removed). Ay ideas what is causing this and how to stop
it?
 
D

Daiya Mitchell

Ah yes, the spontaneous generation of bookmarks problem....

The brackets are bookmarks. On my machine, this happened because I was
using the Pasteboard module in You Control. On someone else's machine,
it was caused by running OS 9 at the same time. On other machines, we
didn't find a trigger.

Try this--shift-login to your user account, shift-launch Word and no
other programs, and see if it still happens. If it doesn't, then some
sort of interaction was causing it. Trial and error might let you find
out which interaction, we can offer some suggestions so post back first.

If it continues to happen, or you can't find the interaction, or looking
for the interaction is just too much trouble, some options:

1) hide the bookmarks and pretend they aren't there by Word |
Preferences | View, uncheck "bookmarks." If you are sending the text to
HTML, though, I think the bookmarks can cause problems.

2) delete the bookmarks. They can be deleted one by one via Insert |
Bookmarks, but that's a big old hassle. If you search this group for
bookmarks, you will find two macros. One deletes all bookmarks in the
document, including those that Word must create when it creates a Table
of Contents or an Index, which could cause a problem. The other deletes
only the type of bookmarks spontaneously created by copying and
pasting. Install the second macro, assign a keyboard shortcut to it,
and run it every so often when you see bookmarks. Generic directions
here, but you need to find the macro first. A "Kristina" posted it
first, but it's been posted a few times.
http://word.mvps.org/Mac/InstallMacro.html

Daiya
 
P

Peter Jamieson

I'm not that familiar with the Mac but...

It sounds almost as if Word is creating a bookmark each time you do an
Edit|Copy.

If you uncheck Word|Preferences|View|Bookmarks, do the square brackets go
away?

Does this happen with all documents, or just the one you're trying to work
on right now?

If it happens with all of them, can you
a. create a new blank document
b. see if any bookmarks are listed in Insert|Bookmark... (You may need to
check "Hidden bookmarks"). If any are listed, that is possibly relevant in
itself, but delete them
c. Select some text and do Edit|Copy however you are doing it
d. see if a new bookmark is listed in Insert|Bookmark...

If so, then I'd guess that a macro is inserting a bookmark each time you do
an edit|copy. If this has suddenly started happening, are you aware of
loading any new templates etc. etc.? An off-the-wall alternative is that
Word has for some reason started treating the predefined bookmark "\Sel"
like non-predefined bookmarks.

Peter Jamieson
 
D

Daiya Mitchell

Hi Peter,

Peter said:
An off-the-wall alternative is that
Word has for some reason started treating the predefined bookmark "\Sel"
like non-predefined bookmarks.
What is "\Sel"? I'm not familiar with that, can you say a bit more?

Daiya
 
J

John McGhie [MVP - Word and Word Macintosh]

Hi Daiya:

"Sel" is the selection range (the area currently selected). It's one of a
series of bookmarks Word maintains automatically. It is supposed to stay
hidden.

I believe you are correct, and that Peter has forgotten that Mac Word has a
bug where the "\Ole" bookmark becomes visible when it shouldn't.

The OLE bookmark is the one you were talking about, that marks the extent of
a copied range.

Cheers


Hi Peter,


What is "\Sel"? I'm not familiar with that, can you say a bit more?

Daiya

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Business Analyst, Consultant
Technical Writer.
Sydney, Australia +61 (0) 4 1209 1410
 
P

Peter Jamieson

Hi Daiya,

Word has a number of predefined bookmarks (at least on the Windows version,
but I have no reason to believe it's any differnt on recent mac versions).
They don't appear in the list that you see in Insert|Bookmark or GoTo dialog
boxes, but you can use them in Macros in much the same way as other bookmark
names.

This list actually comes from the MS Word Developer's Kit for Word 6.0 for
Windows. I don't do much stuff with macros so I don't know if all of these
still work as you might expect or what they do when, for example, you are
working with nested tables in later versions of Word:

\Sel Current selection or the insertion point
\PrevSel1 Most recent location where editing occurred
\PrevSel1 Second most recent location where editing occurred
\StartOfSel Start of the current selection
\EndOfSel End of the current selection
\Line Current line, or the firstline of the current selection. If the
insertion point is at the end of a line that is not the last in the
paragraph, the bookmark includes the entire last line
\Char Current character or the character folowing the insertion point if
there is no selection
\Para Current paragraph or the first paragraph in the selection
\Section Current section or the first section in the selection, including
any break at the end of the section
\Doc Entire contents of the active document except the final paragraph
mark
\Page Current page or the first page of the selection, including any page
break at the end
\StartOfDoc Beginning of the document
\EndOfDoc End of the document
\Cell Current cell or the first cell in the selection
\Table Current table or the entire first table of the selection
\HeadingLevel The heading that contains the insertion point or selection,
plus any subordinate headings and text. If the selection is body text, this
bookmark includes the preceding heading and its subordinate headings/text

Peter Jamieson
 
G

guanzhi

Daiya said:
Ah yes, the spontaneous generation of bookmarks problem....

The brackets are bookmarks. On my machine, this happened because I was
using the Pasteboard module in You Control. On someone else's machine,
it was caused by running OS 9 at the same time. On other machines, we
didn't find a trigger.

I recently intalled PTH Pasteboard and am using You Control Desktops. I
also
have Buttler installed, so one of these might be the culprit. I will
try to find the
Macro as that seems to be the simplest way to take care of the problem.
Thanks.
 
D

Daiya Mitchell

Thanks for much for the edification, Peter. I knew those bookmarks were
there--or some of them, anyhow--but hadn't thought about them having
names. Not connected to the OP's problem, but useful.

Daiya
 
D

Daiya Mitchell

I recently intalled PTH Pasteboard and am using You Control Desktops. I
also
have Buttler installed, so one of these might be the culprit. I will
try to find the
Macro as that seems to be the simplest way to take care of the problem.
Thanks.
I'm using Butler's multi-item clipboard now, so I don't think that is
the trigger, and the problem was *only* with You Control's Pasteboard
module, I'm able to use the rest of the program and You Control: Fonts
(once I got over a little glitch in YC where not-enabled does not equal
off). But yeah, the macro is not a big deal. The second, longer, better
macro only deletes OLE bookmarks, which are the kind created. It might
create issues if you are embedding Excel documents into Word, or
something--I think that's the legit use of OLE bookmarks, but it might
also account for that. I'm not good with OLE or macros to know.

The shift-login will prevent all your startup items from loading, which
should keep Butler, Desktops, and PTH out of the mix, that's why I
recommended it as a diagnostic trick. But only if you want to chase
down the trigger.

I should have said earlier that this certainly does not happen on all
machines, though it is a known issue.

Daiya
 
P

Peter Jamieson

I believe you are correct, and that Peter has forgotten that Mac Word has
a
bug where the "\Ole" bookmark becomes visible when it shouldn't.

No, I never knew :) But FWIW I don't think there is an \Ole bookmark -
perhaps some regular bookmarks called OLEsomething.

Peter Jamieson
 
K

Kristina Conceicao

Hi All,

I am the "Kristina" that Daiya referred to. I had the problem whenever
Classic was running and I copied something in Word and then switched to
another app (not necessarily a Classic app). Once I came back to Word,
bookmarks always appeared, regardless of whether or not I actually
pasted anything.

That was a year and a half ago, though, and since that time there have
been several Word patches and I've upgraded to Tiger. I don't really
run Classic anymore, but I performed a few quick tests just now. I
still saw the bookmarks once in a while, but not every single time as
before.

As Daiya said, someone had posted a macro that removes all bookmarks
from the current document. Since the name of the unwanted bookmarks are
always "OLE_LINK" followed by a sequential number (OLE_LINK1, OLE_LINK2,
etc.), I modified the macro so it will only remove those bookmarks:

Sub RemoveOLE_Bmarks()

Dim i As Long
For i = ActiveDocument.Bookmarks.Count To 1 Step -1
If UCase(Left(ActiveDocument.Bookmarks(i).Name, 8)) =
"OLE_LINK" Then
ActiveDocument.Bookmarks(i).Delete
End If
Next i

End Sub


Don't know if these are the same "OLE" bookmarks that Peter and John are
referring to...

HTH,

Kristina
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top