Asked by duncanb7
at 2024-04-14 01:58:49
Point:500 Replies:10 POST_ID:828470USER_ID:11059
Topic:
Hypertext Markup Language (HTML);Visual Basic Programming;Web Browsers
I would like to switch to do automation in VBA from IE7 to Firefox because of speed issue.
I know there is a lot object definiition is bulit for IE such as SHDocVw.InternetExplorer.
now i try to use VBA code for Firefox such as hdlg = Shell("C:Program FilesMozilla Firefoxfirefox.exe " & URL)
but the window handle of hdlg is not matched to the one in WinID or SPy++ so I could not
continue to do other thing. And then I try the following code and method attached form getopenFirefoxbytitle() to grab the
object of Firefox but it also fail. And then I try both two Sub() as follows, it complaint there is no such library for that.
So, I google it , people say needs to download Firefox version Com like Active-X for firefox , otherwise it
is not possible to do any my.nagviate as IE. But How and where to download all neccesay add-on or library
for Firefox or Chrome or Safari ?
Please advise
Duncan
Sub mozilla()
Dim oBr
oBr = CreateObject("FireFox.Application")
oBr.Visible = True
oBr.navigate ("http:www.microsoft.com")
End Sub
Private Sub UserForm_Activate()
Me.MozillaBrowser1.navigate ("http://www.mrexcel.com/board2/viewtopic.php?p=1182388")
End Sub
I know there is a lot object definiition is bulit for IE such as SHDocVw.InternetExplorer.
now i try to use VBA code for Firefox such as hdlg = Shell("C:Program FilesMozilla Firefoxfirefox.exe " & URL)
but the window handle of hdlg is not matched to the one in WinID or SPy++ so I could not
continue to do other thing. And then I try the following code and method attached form getopenFirefoxbytitle() to grab the
object of Firefox but it also fail. And then I try both two Sub() as follows, it complaint there is no such library for that.
So, I google it , people say needs to download Firefox version Com like Active-X for firefox , otherwise it
is not possible to do any my.nagviate as IE. But How and where to download all neccesay add-on or library
for Firefox or Chrome or Safari ?
Please advise
Duncan
Sub mozilla()
Dim oBr
oBr = CreateObject("FireFox.Application")
oBr.Visible = True
oBr.navigate ("http:www.microsoft.com")
End Sub
Private Sub UserForm_Activate()
Me.MozillaBrowser1.navigate ("http://www.mrexcel.com/board2/viewtopic.php?p=1182388")
End Sub