PC Review


Reply
Thread Tools Rate Thread

Add item to Start Menu

 
 
=?Utf-8?B?am9lZW5n?=
Guest
Posts: n/a
 
      24th May 2007
Is there a way to add an item to the Start Menu in a similar way as adding a
shortcut to the Desktop?
 
Reply With Quote
 
 
 
 
Dave Miller
Guest
Posts: n/a
 
      24th May 2007
Is this Excel related?

 
Reply With Quote
 
=?Utf-8?B?am9lZW5n?=
Guest
Posts: n/a
 
      24th May 2007
Yes, I would like to do this via Excel vba code.

"Dave Miller" wrote:

> Is this Excel related?
>
>

 
Reply With Quote
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      24th May 2007
There is no difference between adding a shortcut to the desk top and adding a
shortcut to the start menu. The only difference if the directory you add the
shortcut in the user's document and settings directory. aq user will have
both a desktop directory and a start directory. Put the shortcut in the
proper location.

"joeeng" wrote:

> Is there a way to add an item to the Start Menu in a similar way as adding a
> shortcut to the Desktop?

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      24th May 2007
There is a startmenu for both the current user and All Users.

Ron de Bruin has some sample code to find that folder:
http://www.rondebruin.nl/folder.htm#SpecialFolders

And here's an old post that shows how to add a shortcut to the desktop.

Option Explicit
Sub CreateShortCut()

Dim oWSH As Object
Dim oShortcut As Object
Dim sPathDeskTop As String
Dim testStr As String
Dim myNewName As String

Set oWSH = CreateObject("WScript.Shell")
sPathDeskTop = oWSH.SpecialFolders("Desktop")

myNewName = "Something else goes here" '<-- change this line

testStr = ""
On Error Resume Next
testStr = Dir(sPathDeskTop & "\" & myNewName & ".lnk")
On Error GoTo 0
If testStr = "" Then
'------------------ If shortcut not found create
Set oShortcut = oWSH.CreateShortCut(sPathDeskTop & "\" & _
myNewName & ".lnk")
With oShortcut
.Description = "Creditors" & vbCrLf & _
"Reconciliation"
.TargetPath = ActiveWorkbook.FullName
.IconLocation = "\\nv09002\tpdrive\TM-Recon\macro\scale.ico"
.Save
End With
Set oWSH = Nothing
'-Msg to tell user about the folders & shortcut
Application.StatusBar = False
MsgBox "The desktop shortcut has been installed"
Else
MsgBox "The desktop shortcut is already installed"
End If

End Sub


Maybe you can combine the two and end up with what you want.


joeeng wrote:
>
> Is there a way to add an item to the Start Menu in a similar way as adding a
> shortcut to the Desktop?


--

Dave Peterson
 
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
Start Menu Item JamesJ Windows Vista General Discussion 13 2nd Jun 2007 08:08 PM
Iinstall a menu item in the Start menu =?Utf-8?B?U2FtdWVsIEJlcm5hcmQ=?= Microsoft Dot NET 0 17th May 2005 06:18 PM
Removing Start Menu Item Bill Law Windows XP General 6 12th Aug 2004 09:09 AM
cannot remove menu start item =?Utf-8?B?Z2VydA==?= Windows XP General 1 9th Jun 2004 05:31 AM
Foreign Language Item on Start Button Start Menu sedman Windows XP General 0 3rd Jun 2004 03:21 PM


Features
 

Advertising
 

Newsgroups
 


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