Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel 仅打开Internet Explorer站点的Shell命令生成错误:参数无效或找不到文件_Excel_Vba_Excel 2016 - Fatal编程技术网

Excel 仅打开Internet Explorer站点的Shell命令生成错误:参数无效或找不到文件

Excel 仅打开Internet Explorer站点的Shell命令生成错误:参数无效或找不到文件,excel,vba,excel-2016,Excel,Vba,Excel 2016,我正在尝试为特定的IE专用站点打开Internet Explorer 取决于我得到的报价数量 无效参数 或 找不到文件 URL = "%program files%\internet explorer/iexplore.exe -private myurl" Shell """" & URL & """" 免责声明: 忽略任何不合适的空格和大写字母。我无法复制粘贴我的代码,因为我的电脑没有互联网连接,并且在工作的虚拟机中。我在手机上打这个 关于cmd %program fil

我正在尝试为特定的IE专用站点打开Internet Explorer

取决于我得到的报价数量

无效参数

找不到文件

URL = "%program files%\internet explorer/iexplore.exe -private myurl" 
Shell """" & URL & """"
免责声明:
忽略任何不合适的空格和大写字母。我无法复制粘贴我的代码,因为我的电脑没有互联网连接,并且在工作的虚拟机中。我在手机上打这个

关于cmd

%program files%\internet explorer/iexplore.exe -private myurl
很好

在Excel上,Shell命令抛出未找到的错误文件

URL = "%program files%\internet explorer/iexplore.exe -private myurl" 
Shell """" & URL & """"
尝试:


好的,我找到了在vba中打开internet explorer的正确方法

亚开放()

将浏览器设置为对象

设置iebrowser=createobject(“InternetExplorer.Application”)

iebrowser.visible=true iebrowser.Navigate2“www.google.pt”

端接头


路径正确我将ie位置复制粘贴到vba,但我仍然尝试使用“程序文件”中的空格未找到相同的错误文件?在任何情况下-似乎你不能通过Shell使用它