Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Use a macro to create a desktop shortcut?

Greetings Everyone,

Our IT group is going to move our stuff to a new server. Everyone's
links to 3 spreadsheets will be obsolete.

I want to put an Excel file where everyone can get it and have a macro
in it that will create shortcuts on the user's desktop. The shortcuts
will be for three separate files.

Thanks in advance for your thoughts.
Glen Ray

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Use a macro to create a desktop shortcut?


hi,
on your desk top,
right click and select new
select shortcut
goto browse
and find the file
select the file and it will show up on the desktop


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=518042

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Use a macro to create a desktop shortcut?

Here is some code to create a desktop shortcut

'----------------------------------------------------------------
Sub CreateShortCut()
'----------------------------------------------------------------
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
.Save
End With
Set oWSH = Nothing

End Sub


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

wrote in message
oups.com...
Greetings Everyone,

Our IT group is going to move our stuff to a new server. Everyone's
links to 3 spreadsheets will be obsolete.

I want to put an Excel file where everyone can get it and have a macro
in it that will create shortcuts on the user's desktop. The shortcuts
will be for three separate files.

Thanks in advance for your thoughts.
Glen Ray



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CREATE DESKTOP SHORTCUT? PARSLEY DUMPLING Excel Discussion (Misc queries) 2 July 30th 09 11:51 AM
How do I create a desktop shortcut for a specific .xlsm file? jwatters Excel Discussion (Misc queries) 3 March 30th 09 06:59 PM
In Excel 2007, how can you create a desktop shortcut for a file? Mark 246 Excel Discussion (Misc queries) 6 June 25th 07 08:05 PM
Desktop Shortcut Michael Rekas[_2_] Excel Programming 5 April 27th 04 06:23 PM
Running a macro from a desktop icon shortcut Sofia Excel Programming 2 July 15th 03 08:01 PM


All times are GMT +1. The time now is 11:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"