|
请参: '* +++++++++++++++++++++++++++++++++++++++ '* Created By 守柔(ShouRou)@ExcelHome 2004-12-16 09:47:55 '仅测试于System: Windows NT Word: 10.0 Language: 2052 '^The Code CopyIn [ThisDocument-ThisDocument]^' '* -------------------------------------------------------------------------- Sub Example()
Dim MyApp As Integer
MyApp = Shell("C:\WINNT\system32\MSPAINT.exe", 1) '运行指定程序
AppActivate MyApp '激活该应用程序
SendKeys "^v", True '发送CTRL+V(粘贴快捷键)
SendKeys "^s", True
SendKeys "T1{Enter}" '保存为T1文件名
End Sub
'---------------------- 当然在实际应用中,需要注意将画图版的尺寸设置得当。 |