Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Wait for press a key!

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Wait for press a key!

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

"Lotuxel" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sendkeys(keys,wait) how do I use wait MM Excel Discussion (Misc queries) 1 February 11th 09 03:47 PM
Should I Wait? Chaplain Doug Excel Discussion (Misc queries) 0 February 6th 07 04:58 PM
Help with Wait X Then Go Ikaabod[_17_] Excel Programming 0 April 25th 06 05:04 PM
Wait for FTP RANDY IN NC[_9_] Excel Programming 0 February 9th 06 06:39 PM
Wait less than a second Claus[_3_] Excel Programming 3 September 7th 05 01:25 PM


All times are GMT +1. The time now is 01:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"