Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Good day all, i am creating a shortcut with the code below and now need
to check if this has been created previously or not, it has branch to other code. Could somebody please help me out of my misery as i am not sure how to do it. ChDrive "C:" Dim oWSH As Object Dim oShortcut As Object Dim sPathDeskTop As String Set oWSH = CreateObject("WScript.Shell") sPathDeskTop = oWSH.SpecialFolders("Desktop") Set oShortcut = oWSH.CreateShortCut(sPathDeskTop & "\" & _ ActiveWorkbook.Name & ".lnk") With oShortcut .TargetPath = ActiveWorkbook.fullName .IconLocation = "\\nv09002\tpdrive\TM-Recon\macro\scale.ico" .Save End With Set oWSH = Nothing Tempy *** Sent via Developersdex http://www.developersdex.com *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I delete an already created series of check boxes? | Excel Discussion (Misc queries) | |||
shortcut ALT +0252 doesn't bring up the check mark symbol? | Excel Worksheet Functions | |||
Problem Deleting Check Boxes created from Forms Toolbar | Excel Discussion (Misc queries) | |||
How can I hide check box created via FORMS together with column? | Excel Discussion (Misc queries) | |||
How to check output folder has been created in the network path?using VBA programming | Excel Programming |