Public 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

解决方案 »

  1.   

    为什么我用这个的时候提示我END SUB END FUNCTION后只能跟注释?
      

  2.   

    有无用的东西在End Sub后面
      

  3.   

    Public 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你是不是把这个引用加到代码块的后面了?引用的代码要在所有SUB和FUNCTION之前
      

  4.   

    哈哈,这家伙估计是超菜...居然把API声明COPY到后面了...领队的跑后面去了,要比赛了,人家喊,领队的呢,"报告,领队不在",哦,那你们进去吧...比赛的时候,"嘿... 你哪儿的啊,名单上没你啊"