Results 1 to 2 of 2

Error Access Denied

Threaded View

  1. #1
    Registered User
    Join Date
    11-01-2014
    Location
    here
    MS-Off Ver
    2007
    Posts
    1

    Error Access Denied

    Hi.

    I have this macro and i want to locate a textbox in a web.

    Sub Pruebas()
    
    Set IE = CreateObject("InternetExplorer.Application")
    IE.Visible = True
    IE.Silent = True
    IE.Navigate "http://www.opineygane.com/"
    Application.Wait (Now() + TimeValue("00:00:05"))
    
    Set ieEle = Nothing
    Set wieCol = IE.document.getElementsByTagName("A")
    i = 0
    
    Do While i < wieCol.Length
    If InStr(1, wieCol(i).innerText, "Iniciar sesión") > 0 Then
    Set ieEle = wieCol(i)
    Exit Do
    End If
    i = i + 1
    Loop
    
    ieEle.Click
    Application.Wait (Now() + TimeValue("00:00:05"))
    
    Set wFrames = IE.document.frames
    i = 0
    Do While i < wFrames.Length
    Set wHtmlDoc = wFrames.Item(i).document --> in this point show me the error "error access denied"
    Views: 14
    Size:  21.6 KB
    
    Set ieEle = Nothing
    Set wieCol = IE.document.getElementsByTagName("input")
    j = 0
    
    Do While j < wieCol.Length
    If InStr(1, wieCol(j).ID, "TextBox1") > 0 Then
    Set ieEle = wieCol(j)
    Exit Do
    End If
    j = j + 1
    Loop
    
    i = i + 1
    Loop
    
    End Sub
    What am i doing wrong?

    Thanks.
    Attached Images Attached Images
    Last edited by vstrogoff; 07-18-2015 at 05:09 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Access Denied: Contact Your Administrator error when running macro
    By IvanJames in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2015, 04:56 PM
  2. Access denied error while running one of the macro in excel
    By chandanp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-12-2014, 01:57 AM
  3. [SOLVED] Access Denied When Importing XML Data
    By clattenburg cake in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2013, 03:50 PM
  4. [SOLVED] ACCESS DENIED to .mdb files
    By J.wills in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-24-2009, 12:21 AM
  5. [SOLVED] Outlook: My Documents: Access Denied
    By jesika in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 03-03-2009, 03:07 AM
  6. [SOLVED] SQL server does not exist or access denied
    By vanessa via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2006, 09:25 PM
  7. [SOLVED] Worksheet Access Denied
    By Nick in forum Excel General
    Replies: 3
    Last Post: 07-07-2005, 10:05 AM

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