Repeat key

J

Joanne

Has anyone ever tried to write some code that would repeat an action a given
number of times? WordPerfect had a terric key called teh "repeat key" which
did that.

Thanks for any help.
 
J

Jay Freedman

Joanne said:
Has anyone ever tried to write some code that would repeat an action
a given number of times? WordPerfect had a terric key called teh
"repeat key" which did that.

Thanks for any help.

I'm sure many people have tried it, and most of them probably succeeded. :)

Look in the VBA help at the topic on the Repeat command, especially the
examples. You can write a simple macro that lets you input the number of
repeats and then calls the Repeat command with that number as the parameter.

If the number is small, just press the F4 key that number of times instead
of using a macro. Note that not all actions are repeatable.
 

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