VBA for MAC navigating in internet

danifitti

New Member
Joined
Feb 11, 2014
Messages
1
I have a Google Analytics Macro that works perfectly fine in Windows, but I need to use it in MAC.
I am having trouble opening a browser and navigating in it, including this code here:
Code:
 Set HTMLDoc = oIExplorer.document
    HTMLDoc.all.Email.Value = GAlogin ‘this is a string I got in another part of the code
    HTMLDoc.all.passwd.Value = GApassword ‘this is a string I got in another part of the code
    For Each objButton In HTMLDoc.getElementsByTagName("input")
        If objButton.Type = "submit" Then
            objButton.Click
            Exit For
        End If
    Next objButton
I found ways to open and navigate browser, but none of them would support this kind of code. More specifically, none of them allowed the 'getElementsByTagName' part nor going through the elements and clicking a button.
Does anyone know how I could navigate and use a browser in MAC that would support this functions?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,215,701
Messages
6,126,311
Members
449,308
Latest member
Ronaldj

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top