那当然不行。
shell调用的是可执行文件。而你的参数只是一个文档。
比如
shell "c:\windows\notepad.exe"

解决方案 »

  1.   

    用shell函数不行。可以用ShellExecute函数在通用声明里加入以下代码
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    然后在你的打开按钮里
    打开c:\windows\destop\aa.doc操作如下
    ShellExecute Me.hwnd, "open", "aa.doc", "", "c:\windows\desktop", 1