- ©«¤l
- 154
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 200
- ÂI¦W
- 30
- §@·~¨t²Î
- windwos 7
- ³nÅ骩¥»
- 64bit
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2017-5-29
- ³Ì«áµn¿ý
- 2024-11-25
|
¥»©«³Ì«á¥Ñ quickfixer ©ó 2021-11-3 17:00 ½s¿è
¦^´_ 3# zz0660
³o¸Ì§Û¨Óªº,ì¤åºô§}
§Arun¬Ý¬Ý,¹³³o¼Ë¶Ü?¬í¼Æ¦Û¤v½Õ¾ã
Sub Copy()
Dim file_name As String
Range("A2:A32").Copy
ActiveWindow.WindowState = xlMinimized
Delay (1) 'µ¥1¬í
file_name = "C:\Windows\system32\notepad.exe" '°O¨Æ¥»¶}·s¤å¥ó
Shell file_name, vbNormalFocus
AppActivate "¥¼©R¦W - °O¨Æ¥»" '°O¨Æ¥»µøµ¡ªº¼ÐÃD
Delay (3) 'µ¥3¬í
SendKeys "{ENTER}", True 'ctrl+v¤§«en¥ýÀH«K¿é¤JÓªF¦è
SendKeys "{BACKSPACE}", True
Delay (0.3) 'µ¥0.3¬í
SendKeys "^V", True
End Sub
Sub Delay(setdelay As Single)
Dim StartTime As Double, NowTime As Double
StartTime = Timer * 100
setdelay = setdelay * 100
Do
NowTime = Timer * 100
DoEvents
Loop Until NowTime - StartTime > setdelay
End Sub |
|