PC Review


Reply
Thread Tools Rate Thread

auto fill internet explorer

 
 
MaddyDread
Guest
Posts: n/a
 
      14th Apr 2010
I have a good feeling this is not possible, but is there a way to pass
information from an Excel user form, i.e.-username and password, into login
fields on a web site?
I currently have a command button which opens the site in IE, which is fine
for me (I don't mind typing in the info once I get there---and I know the
password by heart) but some of the users have a hard time remembering not
only the username/password, but where they have it written down, as well.
It doesn’t seem possible to me, considering I don’t know of any way to
specify where the information is supposed to go once the web page is open,
but I thought I’d post this just in case someone out there knows how to work
some magic.

--
Matty
 
Reply With Quote
 
 
 
 
ron
Guest
Posts: n/a
 
      14th Apr 2010
On Apr 14, 12:28*pm, MaddyDread <MaddyDr...@discussions.microsoft.com>
wrote:
> I have a good feeling this is not possible, but is there a way to pass
> information from an Excel user form, i.e.-username and password, into login
> fields on a web site? *
> I currently have a command button which opens the site in IE, which is fine
> for me (I don't mind typing in the info once I get there---and I know the
> password by heart) but some of the users have a hard time remembering not
> only the username/password, but where they have it written down, as well.
> It doesn’t seem possible to me, considering I don’t know of any way to
> specify where the information is supposed to go once the web page is open,
> but I thought I’d post this just in case someone out there knows how towork
> some magic.
>
> --
> Matty


Matty...Yes, this can be done. Here is a snippet of code that you
would put in your module to accomplish what you want

Set ie = CreateObject("InternetExplorer.Application")

With ie
.Visible = True
.Navigate "http://www.yourwebsite.com/"
.Top = 50
.Left = 530
.Height = 400
.Width = 400

' Loop until the page is fully loaded
Do Until Not ie.Busy And ie.ReadyState = 4
DoEvents
Loop

' Make the desired selections on the Login web page and click the
submit button
Set ipf = ie.document.all.Item("username")
ipf.Value = "your username"

Set ipf = ie.document.all.Item("password")
ipf.Value = "your pw"
ie.document.all.Item("frmlogin").submit

' Loop until the page is fully loaded
Do Until Not ie.Busy And ie.ReadyState = 4
DoEvents
Loop

End With


You will need to look at the source code behind the web page and find
out what terms they use for "username", password" and the login form.
If you post the url, I could be more specific...Ron
 
Reply With Quote
 
MaddyDread
Guest
Posts: n/a
 
      16th Apr 2010
Hi Ron,
Thanks for the response! I haven't gotten a chance to try that out yet, but
the url is https://gateway.usps.com/bcg/login.htm

Thanks!!
--
Matty


"ron" wrote:

> On Apr 14, 12:28 pm, MaddyDread <MaddyDr...@discussions.microsoft.com>
> wrote:
> > I have a good feeling this is not possible, but is there a way to pass
> > information from an Excel user form, i.e.-username and password, into login
> > fields on a web site?
> > I currently have a command button which opens the site in IE, which is fine
> > for me (I don't mind typing in the info once I get there---and I know the
> > password by heart) but some of the users have a hard time remembering not
> > only the username/password, but where they have it written down, as well.
> > It doesn’t seem possible to me, considering I don’t know of any way to
> > specify where the information is supposed to go once the web page is open,
> > but I thought I’d post this just in case someone out there knows how to work
> > some magic.
> >
> > --
> > Matty

>
> Matty...Yes, this can be done. Here is a snippet of code that you
> would put in your module to accomplish what you want
>
> Set ie = CreateObject("InternetExplorer.Application")
>
> With ie
> .Visible = True
> .Navigate "http://www.yourwebsite.com/"
> .Top = 50
> .Left = 530
> .Height = 400
> .Width = 400
>
> ' Loop until the page is fully loaded
> Do Until Not ie.Busy And ie.ReadyState = 4
> DoEvents
> Loop
>
> ' Make the desired selections on the Login web page and click the
> submit button
> Set ipf = ie.document.all.Item("username")
> ipf.Value = "your username"
>
> Set ipf = ie.document.all.Item("password")
> ipf.Value = "your pw"
> ie.document.all.Item("frmlogin").submit
>
> ' Loop until the page is fully loaded
> Do Until Not ie.Busy And ie.ReadyState = 4
> DoEvents
> Loop
>
> End With
>
>
> You will need to look at the source code behind the web page and find
> out what terms they use for "username", password" and the login form.
> If you post the url, I could be more specific...Ron
> .
>

 
Reply With Quote
 
ron
Guest
Posts: n/a
 
      16th Apr 2010
On Apr 16, 10:22*am, MaddyDread <MaddyDr...@discussions.microsoft.com>
wrote:
> Hi Ron,
> Thanks for the response! *I haven't gotten a chance to try that out yet, but
> the url ishttps://gateway.usps.com/bcg/login.htm
>
> Thanks!!
> --
> Matty
>
>
>
> "ron" wrote:
> > On Apr 14, 12:28 pm, MaddyDread <MaddyDr...@discussions.microsoft.com>
> > wrote:
> > > I have a good feeling this is not possible, but is there a way to pass
> > > information from an Excel user form, i.e.-username and password, intologin
> > > fields on a web site? *
> > > I currently have a command button which opens the site in IE, which is fine
> > > for me (I don't mind typing in the info once I get there---and I knowthe
> > > password by heart) but some of the users have a hard time rememberingnot
> > > only the username/password, but where they have it written down, as well.
> > > It doesn’t seem possible to me, considering I don’t know of any way to
> > > specify where the information is supposed to go once the web page is open,
> > > but I thought I’d post this just in case someone out there knows how to work
> > > some magic.

>
> > > --
> > > Matty

>
> > Matty...Yes, this can be done. *Here is a snippet of code that you
> > would put in your module to accomplish what you want

>
> > * * Set ie = CreateObject("InternetExplorer.Application")

>
> > * * With ie
> > * * * * .Visible = True
> > * * * * .Navigate "http://www.yourwebsite.com/"
> > * * * * .Top = 50
> > * * * * .Left = 530
> > * * * * .Height = 400
> > * * * * .Width = 400

>
> > ' Loop until the page is fully loaded
> > * * * * Do Until Not ie.Busy And ie.ReadyState = 4
> > * * * * * * DoEvents
> > * * * * Loop

>
> > ' Make the desired selections on the Login web page and click the
> > submit button
> > * * * * Set ipf = ie.document.all.Item("username")
> > * * * * ipf.Value = "your username"

>
> > * * * * Set ipf = ie.document.all.Item("password")
> > * * * * * * ipf.Value = "your pw"
> > * * * * ie.document.all.Item("frmlogin").submit

>
> > ' Loop until the page is fully loaded
> > * * * * Do Until Not ie.Busy And ie.ReadyState = 4
> > * * * * * * DoEvents
> > * * * * Loop

>
> > * * End With

>
> > You will need to look at the source code behind the web page and find
> > out what terms they use for "username", password" and the login form.
> > If you post the url, I could be more specific...Ron
> > .- Hide quoted text -

>
> - Show quoted text -


Matty...This should work for that url...ron

Set ie = CreateObject("InternetExplorer.Application")

With ie
.Visible = True
.Navigate "https://gateway.usps.com/bcg/login.htm"
.Top = 50
.Left = 530
.Height = 400
.Width = 400

' Loop until the page is fully loaded
Do Until Not ie.Busy And ie.ReadyState = 4
DoEvents
Loop

' Make the desired selections on the Login web page and click the
' submit Button
Set ipf = ie.document.all.Item("login_name")
ipf.Value = "your username"

Set ipf = ie.document.all.Item("user_password")
ipf.Value = "your pw"

ie.document.all.Item("signIn").Click

' Loop until the page is fully loaded
Do Until Not ie.Busy And ie.ReadyState = 4
DoEvents
Loop

End With
 
Reply With Quote
 
MaddyDread
Guest
Posts: n/a
 
      19th Apr 2010
Thank you SO MUCH Ron! It works perfectly! You've been a great help!
--
Matty


"ron" wrote:

> On Apr 16, 10:22 am, MaddyDread <MaddyDr...@discussions.microsoft.com>
> wrote:
> > Hi Ron,
> > Thanks for the response! I haven't gotten a chance to try that out yet, but
> > the url ishttps://gateway.usps.com/bcg/login.htm
> >
> > Thanks!!
> > --
> > Matty
> >
> >
> >
> > "ron" wrote:
> > > On Apr 14, 12:28 pm, MaddyDread <MaddyDr...@discussions.microsoft.com>
> > > wrote:
> > > > I have a good feeling this is not possible, but is there a way to pass
> > > > information from an Excel user form, i.e.-username and password, into login
> > > > fields on a web site?
> > > > I currently have a command button which opens the site in IE, which is fine
> > > > for me (I don't mind typing in the info once I get there---and I know the
> > > > password by heart) but some of the users have a hard time remembering not
> > > > only the username/password, but where they have it written down, as well.
> > > > It doesn’t seem possible to me, considering I don’t know of any way to
> > > > specify where the information is supposed to go once the web page is open,
> > > > but I thought I’d post this just in case someone out there knows how to work
> > > > some magic.

> >
> > > > --
> > > > Matty

> >
> > > Matty...Yes, this can be done. Here is a snippet of code that you
> > > would put in your module to accomplish what you want

> >
> > > Set ie = CreateObject("InternetExplorer.Application")

> >
> > > With ie
> > > .Visible = True
> > > .Navigate "http://www.yourwebsite.com/"
> > > .Top = 50
> > > .Left = 530
> > > .Height = 400
> > > .Width = 400

> >
> > > ' Loop until the page is fully loaded
> > > Do Until Not ie.Busy And ie.ReadyState = 4
> > > DoEvents
> > > Loop

> >
> > > ' Make the desired selections on the Login web page and click the
> > > submit button
> > > Set ipf = ie.document.all.Item("username")
> > > ipf.Value = "your username"

> >
> > > Set ipf = ie.document.all.Item("password")
> > > ipf.Value = "your pw"
> > > ie.document.all.Item("frmlogin").submit

> >
> > > ' Loop until the page is fully loaded
> > > Do Until Not ie.Busy And ie.ReadyState = 4
> > > DoEvents
> > > Loop

> >
> > > End With

> >
> > > You will need to look at the source code behind the web page and find
> > > out what terms they use for "username", password" and the login form.
> > > If you post the url, I could be more specific...Ron
> > > .- Hide quoted text -

> >
> > - Show quoted text -

>
> Matty...This should work for that url...ron
>
> Set ie = CreateObject("InternetExplorer.Application")
>
> With ie
> .Visible = True
> .Navigate "https://gateway.usps.com/bcg/login.htm"
> .Top = 50
> .Left = 530
> .Height = 400
> .Width = 400
>
> ' Loop until the page is fully loaded
> Do Until Not ie.Busy And ie.ReadyState = 4
> DoEvents
> Loop
>
> ' Make the desired selections on the Login web page and click the
> ' submit Button
> Set ipf = ie.document.all.Item("login_name")
> ipf.Value = "your username"
>
> Set ipf = ie.document.all.Item("user_password")
> ipf.Value = "your pw"
>
> ie.document.all.Item("signIn").Click
>
> ' Loop until the page is fully loaded
> Do Until Not ie.Busy And ie.ReadyState = 4
> DoEvents
> Loop
>
> End With
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill field in internet explorer from from LeeTV Microsoft Access Form Coding 0 22nd Apr 2009 09:35 PM
Internet Explorer 6 -- Auto Fill =?Utf-8?B?RGlhbmE=?= Windows XP Internet Explorer 2 22nd Jul 2007 12:58 PM
removing auto fill in internet explorer? Jasonc Windows XP General 1 23rd Jan 2004 12:49 PM
Auto Fill feature causes Explorer to hang, temporarily Jack Windows XP Internet Explorer 2 25th Sep 2003 08:15 AM
Auto Fill Program needed to get maps from internet onto excel Tricia Microsoft Excel Programming 1 8th Jul 2003 04:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:02 PM.