1
I am changing the name of several worksheets at the same time, but some of them have shortcuts, and in the middle of the change I want the shortcuts to follow this change.
Sub changeTargetPath()
Set wsc = WScript.CreateObject("WScript.Shell")
Set Lnk = wsc.CreateShortcut(wsc.SpecialFolders("desktop") & "\tabela 1.lnk")
Lnk.targetpath = """C:\Users\leandro.moreira\Desktop\tabela 1.xlsx"" C:\Users\leandro.moreira\Desktop\atalho 2.xlsx"
Lnk.Description = "tabela 1"
Lnk.Arguments = "C:\Users\leandro.moreira\Desktop\atalho 2.xlsx"
Lnk.Save
End Sub
What I made of code is this.
Hello, friend! Do you know where the shortcuts you would like to update are? If yes, it is easier to help you. I say this because there is no quick way to find all shortcuts linked to a particular file on the system.
– J. L. Muller
I know how to find yes. The problem is to change.
– Leandro Felipe Moreira