Hoping for help to create a hyperlink that opens up an .RDP file. I was able to invoke the mstsc.exe using the standard
hyperlink dialogue but what i really want is to invoke the mstsc.exe /admin to open a certain RDP file.
inserting the API code from DominicB into a VB object via the developer pane but its not working and i lack experience in
here's what i put in the object for my worksheet:
Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
ShellExecute 0, vbNullString, "SanAnt47.rdp", vbNullString, "C:Documents and SettingsmyuserDesktopRDPs",
Private Sub Worksheet_Activate()
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Am I going about this all wrong?
Where do i put the API in and how must i edit it?
Also I need to use
the console switch /admin with the mstsc.exe to make this work.
Any help is appreciated!