Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to create a new Wb and save it to the desktop... When I run
this, it says the file can't be located... What am I missing? Sub Test() Dim csFILENAME As String Dim wsh As Object Dim Ws As Worksheet Dim Wb As Workbook Set wsh = CreateObject("wscript.shell") csFILENAME = wsh.SpecialFolders.Item("Desktop") Set xL = New Excel.Application Set Wb = xL.Workbooks.Open(csFILENAME & "\" & "Test" & ".xls") End Sub Thanks, -- Dan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CREATE DESKTOP SHORTCUT? | Excel Discussion (Misc queries) | |||
How do I create a desktop shortcut for a specific .xlsm file? | Excel Discussion (Misc queries) | |||
In Excel 2007, how can you create a desktop shortcut for a file? | Excel Discussion (Misc queries) | |||
Use a macro to create a desktop shortcut? | Excel Programming | |||
how do i create a short cut on my desktop for a excell file? | Excel Discussion (Misc queries) |