簡體   English   中英

通過直接程序路徑在Excel VBA中打開Internet Explorer

[英]Open Internet Explorer In Excel VBA through direct program path

我有一個excel宏,用於打開Internet Explorer應用程序並操縱該程序。 它在相當長的一段時間內運行良好。 但是,我的一些用戶發現他們需要運行64位Internet Explorer才能維護某些打印首選項(該宏會自動從我們的網站打印頁面)。 如果從鏈接C:\\ Program Files \\ Internet Explorer \\ IExplore.exe啟動了Internet Explorer程序,則該宏可以工作。

我以前打開ie程序的代碼是:

Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.navigate ("URL")

我如何才能使我的對象(即通過文件路徑C:\\ Program Files \\ Internet Explorer \\ IExplore.exe專門打開Internet Explorer,並像以前一樣將其創建為對象)? 如果重要的話,我們計算機上安裝的Internet Explorer是ie9。

IE的所謂桌面版本(不是Metro版本)運行64位IE框架,而所有IE窗口均為32位。 Windows出廠默認使用IE的64位(程序文件)和32位(程序文件(x86))版本來完成此操作。 微軟不希望人們運行IE的桌面版本。 Q&A的Internet Explorer經理在文章中提到了他們最出色的推理:64位Internet Explorer 也不能將64位版本的Internet Explorer 9設置為默認瀏覽器。

您的Q中的以下內容可能提出了另一種攻擊方法: However, some of my users have discovered that they need 64 bit internet explorer running in order to maintain some of their printing preferences :為什么這樣做,它有什么作用?安裝打印機驅動程序的位?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM