Home > Forum Home > Automating Data Analysis Tasks > Automating a web query login to download data > Form variables required for login Share

Form variables required for login

Excel Help for Form Variables Required For Login in Automating Data Analysis Tasks


Forum TopicLogin

Form Variables Required For Login

Rate this:
(3/5 from 6 votes)
SurprisedOn analysis of the web site in question, the form variable names to login are htmUserName and htmPassword.

In this case, the primary task is to replace the three constants like:

VBA Code:
Const MyUrl As String = "http://www.investors.com/login.aspx?/default.asp"
Const PostUser As String = "htmUserName=User Name" 'Change user name here
Const PostPassword As String = "&htmPassword=password" 'Change password here


Note that, you may be able to change the URL and add more variables in order to download the data in one step without having to first login.
 Excel Business Forums Administrator
 Posted by on
 
View Full Post

Find relevant Excel templates and add-ins for Form variables required for login in the