Web Query using Excel 2000

JDoggity

New Member
Joined
Jul 25, 2002
Messages
12
Is there a way to query a web site that is password protected?

I'm on a Intranet and I want query a site on the same Intranet. I have my user name and login.

Would I be able to use VBA that can automaticaly login and then query the data I need?

Thank in advance.
 

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.
Is there another way? I also have the "@" symbol in my login ... does this present another problem? And btw, when you go to the secured site, preceding the URL is "https://". How does that differ from the regular "http://" when one is trying to login to get a web query to update? It also seems that Excel doesn't recognize the cookies after you have logged in through IE, because I am still getting the "web query returned no data" error message after logging in manually and through script (see below). Thank you for your help.

Sub LoginMe()

Dim appIE As Variant

Set appIE = CreateObject("InternetExplorer.Application")

appIE.Visible = True

While appIE.busy
DoEvents
Wend

appIE.navigate "https://www.hedgefundresearch.com/mon_register/index.php?fuse=login&1098991088"

Application.Wait Now + TimeValue("00:00:05")

AppActivate "HFRI Monthly Indices - Login"


SendKeys "{TAB 33}", True
SendKeys "superstar@excel.com", True
SendKeys "{TAB}", True
SendKeys "holla", True
SendKeys "{ENTER}", True

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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