Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Creating a SHORTCUT to a file in XLSTART
probably a lot easier than I imagine this one!
i'd like to progrmmatically create a shortcut to a file in my XLstart file. anybody any ideas? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Creating a SHORTCUT to a file in XLSTART
You can use the WScript shell object. The sub below will find the XLstart
folder and place a shortcut called StartABC that targets the workbook C:\test\abc.xls. Sub xlstartLINK() Dim wsh As Object Dim lnk As Variant Dim strXLstart As String strXLstart = Application.StartupPath Set wsh = CreateObject("WScript.Shell") Set lnk = wsh.CreateShortcut(strXLstart & "\StartABC.lnk") lnk.TargetPath = "C:\test\abc.xls" lnk.Save End Sub Steve "jason" wrote in message om... probably a lot easier than I imagine this one! i'd like to progrmmatically create a shortcut to a file in my XLstart file. anybody any ideas? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Creating a SHORTCUT to a file in XLSTART
Cheers Steve
"Steve Yandl" wrote in message ... You can use the WScript shell object. The sub below will find the XLstart folder and place a shortcut called StartABC that targets the workbook C:\test\abc.xls. Sub xlstartLINK() Dim wsh As Object Dim lnk As Variant Dim strXLstart As String strXLstart = Application.StartupPath Set wsh = CreateObject("WScript.Shell") Set lnk = wsh.CreateShortcut(strXLstart & "\StartABC.lnk") lnk.TargetPath = "C:\test\abc.xls" lnk.Save End Sub Steve "jason" wrote in message om... probably a lot easier than I imagine this one! i'd like to progrmmatically create a shortcut to a file in my XLstart file. anybody any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Adding a file to xlstart folder. | Excel Discussion (Misc queries) | |||
xlstart not starting file | Excel Discussion (Misc queries) | |||
XLSTART-Creating a toolbar | Setting up and Configuration of Excel | |||
I cannot load Excel from Office, a problem creating XLStart? | Setting up and Configuration of Excel | |||
xlstart file is not the same I saved | Excel Discussion (Misc queries) |