Hi, all
does it possible to have vba code which can call and open the application which located at PC desktop ?
please help and advice?
thanks very much .
Sub Test()
Dim FileName As String
FileName = Environ("USERPROFILE") & "\Desktop\" & "test.lnk"
FileName = "Excel " & """" & FileName & """"
Call Shell(FileName, vbHide)
End Sub
Hi there,
What is it exactly that is on the desktop? Is it a shortcut to a file, or the file itself? Also, what type of file is it, or if a shortcut, what type of file does the shortcut point to?
Mark
Hi GTO
Thanks you read,
the shortcut is application itself.