Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Opening a shortcut in a macro.
Hi all,
What I am trying to do is to open an Excel file in a macro but using a shortcut. The following code works: Workbooks.Open("FileName.xls) The following code does not work: WorkBooks.Open("FileNameShortcut") Nor WorkBooks.Open("FileNameShortcut.xls") I do have th same problem with the FileSearch function. Any Idea on how to perform taht ? Thanks, nde |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Opening a shortcut in a macro.
Try using the shell command with the shortcut name (.lnk extension).
-- Regards, Tom Ogilvy "nde" wrote: Hi all, What I am trying to do is to open an Excel file in a macro but using a shortcut. The following code works: Workbooks.Open("FileName.xls) The following code does not work: WorkBooks.Open("FileNameShortcut") Nor WorkBooks.Open("FileNameShortcut.xls") I do have th same problem with the FileSearch function. Any Idea on how to perform taht ? Thanks, nde |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Opening a shortcut in a macro.
Worked perferctly with the lnk extension.
Thanks a lot, you made my day ! Nde "Tom Ogilvy" wrote: Try using the shell command with the shortcut name (.lnk extension). -- Regards, Tom Ogilvy "nde" wrote: Hi all, What I am trying to do is to open an Excel file in a macro but using a shortcut. The following code works: Workbooks.Open("FileName.xls) The following code does not work: WorkBooks.Open("FileNameShortcut") Nor WorkBooks.Open("FileNameShortcut.xls") I do have th same problem with the FileSearch function. Any Idea on how to perform taht ? Thanks, nde |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Slowness in Opening Excel from document shortcut | Excel Discussion (Misc queries) | |||
Macro Shortcut Key Conflicts with Application Shortcut Keys | Excel Programming | |||
Macro Shortcut Key Conflicts with Application Shortcut Keys | Excel Programming | |||
Delay opening a file from excel shortcut | Excel Discussion (Misc queries) | |||
Playing sounds on opening a worksheet or shortcut | Excel Programming |