![]() |
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 |
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 |
All times are GMT +1. The time now is 06:52 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com