LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Excel 2007 Auto Login Problem worked with 2003

below is the code that i have in my spreadsheet to auto log into various web
sites and d/l updated information from about 10 different sites
automatically. I do these data updates about 20 times per hour with 10 diff
sites. this code worked perfectly with excel 2003, but since installing 2007
when i run the macro, it goes to the web page at the login screen but does
not put in the account name or password.

is there any specific settings in excel 2007 that need to be changed to get
the auto logon ot work.

macro code below for each one of the sites i log into, they are all the same
other than the acct and pw it grabs from the spreadsheet to run:

Sub BetJBN()
Const BetJBN As String = "http://www.betjbn.com/"

UserName = Range("b5").Value
Password = Range("b6").Value

On Error GoTo Err_Login

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

With IE
.navigate BetJBN 'address of log in page
Do While .busy: DoEvents: Loopw
Do While .ReadyState < 4: DoEvents: Loop

'this information is specific to the web page
With .document.forms(0)
.customerID.Value = UserName
.Password.Value = Password
.submit
End With
End With

Exit_Login:
Exit Sub
Err_Login:
MsgBox Err.Number & " " & Err.Description, vbOKOnly + vbCritical, "Error"
Resume Exit_Login

End Sub

--
tks in adv for your help
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Office 2007 / 2003 compatibility problem Joe Excel Discussion (Misc queries) 4 February 2nd 07 05:32 PM
Excel and Windows Login ID problem... Tad Anglin Setting up and Configuration of Excel 2 January 11th 07 02:18 PM
Vacation accrual based on hours worked - Excel 2003 CCB AA Excel Worksheet Functions 1 December 20th 05 08:39 PM
Having trouble totaling columns in excel 2003, always worked b4 rjmac Excel Worksheet Functions 1 June 24th 05 07:01 PM
Login Logout Date Problem ascool_asice Excel Worksheet Functions 2 May 30th 05 12:50 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"