Passwords on Web Queries

msraga

New Member
Joined
Jun 8, 2011
Messages
3
Hello,

I have never used macros, so I was hoping for a bit of help.. I created a spreadsheet that took a table from a protected webpage and added it to excel (not expecting that it would not update the next day, due to the passwords). I did this with 8 different tables from different webpages. I wrote a bit of a macro to sign into the website, but I cant seem to figure out how to navigate to the correct page, grab the right table, and then paste it in the spreadsheet.

Any help would be greatly appreciated!
Thanks, Matt

Code:
Sub myWebOpenPW()
'Open site if it requires a PassWord Model!
Dim IE As Object

Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True

'Go to this Web Page!
IE.Navigate "http://www.gomeznetworks.com/login.asp"

'Wait for window to open!
Application.Wait (Now + TimeValue("0:00:05"))
'MsgBox "Done"
IE.Visible = True

'Send log-on information!
SendKeys "msraga", True 'put username here
SendKeys "{TAB}", True
SendKeys "password", True 'put password here
SendKeys "{ENTER}", True

'Wait for window to open!
Application.Wait (Now + TimeValue("0:00:06"))
'MsgBox "Done"
IE.Visible = True

End Sub
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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