Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
I found many topics on this subject, but could not find any that will work with this code. Can someone assist with checking if a desktop shortcut exsit.
thank you kindly
thank you kindly
VBA Code:
Sub IconShortcut()
With CreateObject("WScript.Shell").CreateShortcut(CreateObject("WScript.Shell").SpecialFolders("Desktop") & Application.PathSeparator & ThisWorkbook.Name & ".lnk")
.targetpath = ThisWorkbook.FullName
.IconLocation = ThisWorkbook.Path & "\Name.ico"
.Save
End With
End Sub