PC Review


Reply
Thread Tools Rate Thread

Desctop Shortcut question

 
 
ludo.soete@scarlet.be
Guest
Posts: n/a
 
      19th Aug 2007
Hi,

I use for the moment following code to place a shortcut on the desctop
and this works fine:

Sub DesctopShortcut()
Dim WShell As Object
Dim MyShortcut As Object
Dim DesktopPath As String
Dim fs As Object

Set WShell = CreateObject("wscript.shell")
DesktopPath = WShell.specialfolders("desktop")
Set MyShortcut = WShell.CreateShortCut(DesktopPath & "\" &
ActiveWorkbook.Name & ".lnk")

With MyShortcut
.targetpath = ActiveWorkbook.FullName
.iconlocation =
WShell.expandenvironmentstrings(ActiveWorkbook.Path & "\Belug
Shortcut.ico,0")
.Save
End With
Set WShell = Nothing
MsgBox " A Shortcut has been placed on your Desktop.", , "Place
Shortcut"
End Sub

But my question is now as follow:

Can i refer to an embedded commandbutton picture in a form from the
same program instead of an icon that resides in a folder?
If so, how to doe so?

Thanks in advance.
Ludo

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure Desctop?? Or?? Kurt Heggelund Windows Vista General Discussion 1 29th Oct 2006 05:56 PM
The desctop icons have got a background! =?Utf-8?B?U29sYXI=?= Windows XP Help 6 30th Dec 2005 03:50 AM
The desctop icons have got a background! =?Utf-8?B?U29sYXI=?= Windows XP Performance 5 31st Oct 2004 08:50 PM
links from desctop drstavitsky@comcast.net Windows XP Networking 0 4th Feb 2004 02:46 AM
Disabling Active Desctop Panayiotis Microsoft Windows 2000 File System 1 5th Dec 2003 02:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:37 PM.