Wait for press a key!

G

Guest

Hi All,
In VBA, how can I hold the macro until press a assigned key.
Example!
sub copy_value()
Activecell.copy
(the macro hold and waiting press a assigned key.)
activecell.select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
end if
 
N

NickHK

Why not give the user an Application.Inputbox so they can choose a range
into which the Paste goes ?
Check the help for relevant arguments.

NickHK
 

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