Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there
Is it possible to use VBA to generate desktop shortcut to a workbook? Thanks Michael |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you have Scripting enabled, refer to
http://www.rb-ad.dircon.co.uk/rob/ex...velop/index.ht Otherwise, if you have the appropriate DLLs, refer to http://support.microsoft.com/default...NoWebContent=1 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Michael,
Michael Rekas wrote: Is it possible to use VBA to generate desktop shortcut to a workbook? set a reference on "Windows Scripting Host Object Model"-library Sub DesktopShortcut() Dim WSHShell As IWshShell Set WSHShell = New IWshShell_Class With WSHShell.CreateShortcut( _ WSHShell.SpecialFolders("Desktop") & "\" & ActiveWorkbook.Name & ".lnk") .TargetPath = ActiveWorkbook.FullName .Save End With End Sub -- Mit freundlichen Grüssen Melanie Breden - Microsoft MVP für Excel - http://excel.codebooks.de (Das Excel-VBA Codebook) |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you for the replies. I like the "Windows Scripting Host Object
Model" code. However is it possible to automatically set the reference to the library? Michael On Tue, 27 Apr 2004 09:57:21 +0200, Michael Rekas wrote: Hi there Is it possible to use VBA to generate desktop shortcut to a workbook? Thanks Michael |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hallo Michael,
Michael Rekas wrote: Thank you for the replies. I like the "Windows Scripting Host Object Model" code. However is it possible to automatically set the reference to the library? with the following defining no reference must be set: Dim WSHShell As Object Set WSHShell = CreateObject("WScript.Shell") -- Mit freundlichen Grüssen Melanie Breden - Microsoft MVP für Excel - http://excel.codebooks.de (Das Excel-VBA Codebook) |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Melanie
Excellent! Works perfectly. Thanks Michael On Tue, 27 Apr 2004 19:06:23 +0200, "Melanie Breden" wrote: Hallo Michael, Michael Rekas wrote: Thank you for the replies. I like the "Windows Scripting Host Object Model" code. However is it possible to automatically set the reference to the library? with the following defining no reference must be set: Dim WSHShell As Object Set WSHShell = CreateObject("WScript.Shell") |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CREATE DESKTOP SHORTCUT? | Excel Discussion (Misc queries) | |||
How do I place shortcut to a particular document on my desktop? | Excel Discussion (Misc queries) | |||
Desktop Shortcut | New Users to Excel | |||
how can i get office shortcut bar on the desktop? | Excel Discussion (Misc queries) | |||
Sending a shortcut to the desktop | Excel Discussion (Misc queries) |