Radoslaw Poprawski
Active Member
- Joined
- Jun 19, 2021
- Messages
- 398
- Office Version
- 365
- Platform
- Windows
Hi.
I have the following code:
and I can start the program, however all the "send keys" command do is implement TABB or ENTER within VBA editor and it does not pass it to cisco app.
any help?
I have the following code:
VBA Code:
Sub Cisco_start()
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run """%PROGRAMFILES(x86)%\Cisco\Cisco AnyConnect Secure Mobility Client\vpnui.exe"""
WshShell.AppActivate "Cisco AnyConnect Secure Mobility Client"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{ENTER}"
End Sub
and I can start the program, however all the "send keys" command do is implement TABB or ENTER within VBA editor and it does not pass it to cisco app.
any help?