Results 1 to 1 of 1

click on Hyperlink with macro

Threaded View

PriyankaGurav click on Hyperlink with macro 04-06-2013, 04:06 AM
  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    1

    Unhappy click on Hyperlink with macro

    I am trying to click on a hyperlink button.That have a javascript function with ajax control.the link have only id and title attribute.then how to click in.
    i used following code but it does not work.

    //here i tried to retrive only the title that element..but it also not responding anything
    Set htmlDoc = .document
                Set htmlColl = htmlDoc.getElementsByTagName("a")
                   For Each htmlInput In htmlColl              
                       If htmlInput.classID = "sc545" Then
                            Range("A4").Value = htmlInput.Title
                       End If
                    Next htmlInput
            End With
    Last edited by arlu1201; 04-06-2013 at 06:08 AM. Reason: Use code tags in future.

Thread Information

Users Browsing this Thread

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

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