+ Reply to Thread
Results 1 to 2 of 2

Auto login in Web Url

Hybrid View

  1. #1
    Registered User
    Join Date
    02-26-2015
    Location
    chennai
    MS-Off Ver
    2007
    Posts
    1

    Auto login in Web Url

    Hi All,

    I wrote this coding wih help of my friend.This is to automate sytsem monitoring.
    Sub JAVA()
       Dim ie As Object
       Dim rc As Integer
      
       Set ie = CreateObject("InternetExplorer.Application")
       ie.Visible = True
       ie.Navigate "http://"
       'wait until the page loads
       Do While ie.ReadyState <> 4
          DoEvents
       Loop
       ie.Visible = True
      
       With ie.document
     
          .getElementById("j_username").Value = 
           .getElementById("j_password").Value = 
       .getElementById("logonForm").submit
           
       End With
      
    End Sub
    Till this everything is working fine .I need to add few more line for validating,successful logon cell has to show green if not login to url the cell should turn red.please help me to complete this.
    Last edited by Leith Ross; 05-29-2015 at 09:57 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Auto login in Web Url

    Hello karthik771,

    You can determine a successful login by checking the URL of the page you are redirected to after submission. Then the URL cell color can be changed based on that information.

    Is this something you can do yourself? If not let me know.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Auto Login to Program for VPN access
    By cory0789 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2014, 01:03 AM
  2. Auto Login In Web Application
    By malviya_anil77 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 07-24-2011, 03:59 AM
  3. Excel 2007 : Auto Login in Web application
    By malviya_anil77 in forum Excel General
    Replies: 0
    Last Post: 07-07-2011, 01:13 AM
  4. web query auto login javascript
    By newengwongpeggy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-29-2011, 12:27 PM
  5. Auto Login Macro?
    By DefTouch85 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2010, 07:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1