Keyboard commands/shortcuts - ???

J

Julia

I use Word 2000.

I set up a shortcut/macro for "Accept Edit" and "Reject
Edit" while in revision mode.

Problem: The commands work for insertions, but not
deletions! It is as if they don't recognize the
deletions.

My colleagues using Word 97 do not have this problem, but
those with 2000 do.

Any ideas? It's a critical utility for editors. Thanks.
 
M

Mark Tangard

Hi Julia,

When you post about a problem with a macro, the single most
important thing is to include your code. Otherwise nobody
can begin to guess what's wrong with it.

I have the same sort of macros (because like many writers
I dislike Word's built-in Accept/Reject dialog) and am also
running Word 2000. They work. If the key line in your
'Accept' macro isn't something like this:

Selection.Range.Revisions.AcceptAll

then try substituting that line and see if it works. If not,
post back with what you're using.

Side note: I've found it useful to have the macro accept or
reject changes in the selection *or* if there's no selection,
all changes in the current paragraph. So I use this:


If Selection.End - Selection.Start = 0 Then
Selection.Paragraphs(1).Range.Revisions.AcceptAll
Else
Selection.Range.Revisions.AcceptAll
End If

Hope this helps.
 
J

Julia

Mark, thank you.

I was not clear when I used the word macro. What I
actually did was this:

Tools
Customize
Commands
Keyboard
All Commands
ToolsRevisionMarks:

Then for ToolsRevisionMarksNext, Accept, Prev, Reject, I
assigned a softkey. The accept and reject keys only work
on inserted text, not deleted.

Is that more clear? Do you know a way around that? I am
not versed in macros but I will need this utility and it
may be worth finding someone who is!
 
M

Mark Tangard

Hi Julia,

I see. You're right, it doesn't work. And from the command
description displayed at the bottom of the Customize dialog,
it should! (What led me astray was that you said you had
assigned a macro. Those aren't macros, just shortcuts, aka
hotkeys.)

Tracked Changes is a fairly immature area of Word; it seems
to get more and more incorriwgible with each new version.
I'd suggest you copy my two macros and assign them to the
shortcuts you were using for Accept and Reject. Don't be
afraid of them. (If you're smart enough use the Customize
dialog, you're plenty able to copy macros!) The 2 links
below explain how to do it. The macros follow the links.

To assign a macro to a shortcut key:
http://www.mvps.org/word/FAQs/Customization/AsgnCmdOrMacroToHotkey.htm

To use a macro offered to you in a newsgroup:
http://www.mvps.org/word/FAQs/MacrosVBA/CreateAMacro.htm

Here's the 2 macros:

Sub mt_AcceptRevisionsInSelection
If Documents.Count = 0 Then Exit Sub
Selection.Range.Revisions.AcceptAll
End Sub

Sub mt_RejectRevisionsInSelection
If Documents.Count = 0 Then Exit Sub
Selection.Range.Revisions.RejectAll
End Sub

Hope this helps.
 

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