Saturday, May 8, 2010

ShowBrowserBar Method

ShowBrowserBar Method Example - makes the favorites bar (View Menu -> Explorer Bars -> Favorites) visible.

Set objIExplorer = CreateObject("internetexplorer.application")
objIExplorer.visible = True

objIExplorer.ShowBrowserBar "{EFA24E61-B078-11d0-89E4-00C04FC9E26E}", True

objIExplorer.Navigate "google.com"
Do While objIExplorer.Visible
WScript.Sleep 1000
Loop

ANOTHER WAY

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "iexplore.exe"
WScript.Sleep 500
WshShell.SendKeys "^i"



See all Methods & Properties of InternetExplorer Object here.