Record Macro mode: unable to select document elements

P

Post Tenebras Lux

Win XP / Office Pro 2003 with all latest SP.

When I try to record a macro (Tools / Macro / Record), the record macro
toolbar appears and the cursor turns into the recording cursor (like a
cassette). At this point, I am unable to select any text or tables or any
document elements. The Main Menu is fully accessible, and if I have
preselected some text, the macro will record fine (the VBA is created in
Normal.dot module New Macros).

If I pause or stop the macro, I am suddenly able to select document elements
again. I can't find any setting that would account for this behavior.

I'm an old hand at Excel and Access VBA / VB6, but have never tried
programming Word before - so I can't say if this is new behavior or not. The
record macro function works fine in Excel and Access - though I almost never
use it.

I haven't found any references to this problem, so would appreciate it if
someone has a simple explanation / solution.

Much obliged.
 
L

Lene Fredborg

You must use the keyboard to select text or other types of content.

From Word's Help on "Create a macro":
"When you record a macro, you can use the mouse to click commands and
options, but not to select text. You must use the keyboard to record these
actions. For example, you can use F8 to select text and press END to move the
cursor to the end of the line."

Note that you can also use e.g. the Shift and/or Ctrl keys in combination
with the arrow keys to select text.

For more details on selecting text using the keyboard, see Word's help on
"Keyboard shortcuts" - you will find information about selecting text below
the heading "Editing and moving text and graphics".

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
 
J

Jay Freedman

The macro recorder in Word really doesn't like the mouse very much.
"Rodents! Bah humbug!" :)

You can use the arrow keys together with Shift and/or Control to
select things while the recorder is running.

Beyond that, the recorder is a bit buggy. See
http://www.word.mvps.org/FAQs/MacrosVBA/ModifyRecordedMacro.htm for
some things you'll have to fix up. Personally, I use the recorder only
to get an idea of the commands and objects needed to do a particular
job, but then I write the real macro from scratch.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
P

Post Tenebras Lux

unglaublich. Vielen Danke!

Lene Fredborg said:
You must use the keyboard to select text or other types of content.

From Word's Help on "Create a macro":
"When you record a macro, you can use the mouse to click commands and
options, but not to select text. You must use the keyboard to record these
actions. For example, you can use F8 to select text and press END to move the
cursor to the end of the line."

Note that you can also use e.g. the Shift and/or Ctrl keys in combination
with the arrow keys to select text.

For more details on selecting text using the keyboard, see Word's help on
"Keyboard shortcuts" - you will find information about selecting text below
the heading "Editing and moving text and graphics".

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
 

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