Sub Create_ShortCut()
' needs reference to Windows Script Host Object Model
Dim sc_Path As String
Dim WSHShell As IWshShell
Dim MyShortcut As IWshShortcut_Class
sc_Path = "C:\"
Set WSHShell = New IWshShell_Class
Set MyShortcut = WSHShell.CreateShortcut(sc_Path & "\" & ActiveWorkbook.Name & ".lnk")
With MyShortcut
.TargetPath = ActiveWorkbook.FullName
.Save
End With
Set WSHShell = Nothing
End Sub
Sub Create_ShortCut()
' needs reference to Windows Script Host Object Model
Dim sc_Path As String
Dim WSHShell As Object
Dim MyShortcut As Object
sc_Path = "C:"
Set WSHShell = CreateObject("WScript.Shell")
Set MyShortcut = WSHShell.CreateShortcut(sc_Path & "\" & ActiveWorkbook.Name & ".lnk")
With MyShortcut
.TargetPath = ActiveWorkbook.FullName
.Save
End With
Set WSHShell = Nothing
End Sub