Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

mapping keyboard shortcuts for highlighting in word 2002

Oct 4, 2007 1:09PM PDT

My company uses office 2002 suite.

I do a fair amount of highlighting of text documents as part of my job. I don't mind clicking on the mouse icon, but often enough, I don't even use my mouse as I edit/highlight continuously and it breaks up the momentum. So I was wondering if...

...there was some way I can map a keyboard shortcut (anything simple as ctrl-f4 to something a little more "arcane" as ctrl+shift+f1+f2+3)

I've looked in the customize menu and then headed over to keyboard mapping. but I can't figure out which one does it exactly.

Discussion is locked

- Collapse -
Re: keyboard shortcut
Oct 4, 2007 5:04PM PDT

Record a macro for whatever you want to do, and assign it to a keyboard shortcut. That's all very standard.

Kees

- Collapse -
that's the problem though
Oct 5, 2007 4:49AM PDT

well that's the problem isn't it.

you can't highlight using keyboard shortcuts and a macro will not record mouse movements. if i could do that it would be very simple. unless i'm missing something simple about macroing.

- Collapse -
Then ...
Oct 5, 2007 5:21AM PDT

please explain what you mean with highlighting? A few examples would be nice. Indeed, I didn't understand your "ctrl+shift+f1+f2+3", so it might be a good start to explain that also.

Kees

- Collapse -
keyboard mapping
Oct 5, 2007 5:56AM PDT

using the highlight tool to put a color on top of text.

the word equivalent of using a yellow-highlighter.

the keyboard shortcut is just any combo of keys necessary. don't worry about that part. that's...just some fluff that I tacked on there without thinking.

- Collapse -
Re: highlighing
Oct 6, 2007 12:41AM PDT

I just typed some text, like abcdef, turned on the macro recorder, used the keyboard to select a few letters like cde, highlighted it using the button on the toolbar and stopped the macro recorder.

Editing the macro (and deleting the part that selected the cde) showed a macro that highlights the selection with a yellow background. I could link this macro to shortcut key, like shift-ctrl-y and then use that shortcut to highlight any selection with a yellow background. That's what you want?

The macro (which I renamed from the default macro1) is:
Sub highlight_yellow()
Selection.Range.HighlightColorIndex = wdYellow
End Sub
That's not too difficult, it seems.

Kees