Results 1 to 2 of 2

Run-time error '-2147467259 (80004005)

Threaded View

3x0dus Run-time error '-2147467259... 05-11-2020, 10:47 AM
dangelor Re: Run-time error... 05-12-2020, 07:37 PM
  1. #1
    Registered User
    Join Date
    05-11-2020
    Location
    Albany, New York
    MS-Off Ver
    2016
    Posts
    1

    Run-time error '-2147467259 (80004005)

    Hi everyone,

    I was wondering if you could help me. I know very little about excel and macros, but I am trying to create a macro that will auto-populate a web form based on the text that appears in specific cells. I found a video on youtube that does just this, but I keep coming up against Run-time error '-2147467259 (80004005) - Method 'Document' of object 'IWebBrowser2' failed. For background, this is auto-populating on a corporate intranet webpage.

    Here is my code:
    Sub FormAutomation()
    
    Dim IE As Object
    Set IE = CreateObject("InternetExplorer.Application")
    IE.Navigate "web address"
    IE.Visible = True
    
    While IE.Busy
    DoEvents
    Wend
    
    IE.Document.All("xxxxxxx").Value = ThisWorkbook.Sheets("sheet2").Range("a1")
    
    End Sub
    ----

    So, two questions:

    1. How do I resolve this error so that the macro works?
    2. There are multiple text fields that are being auto-populated, not just a1 - do I add the same statement multiple times
    IE.Document.All("xxxxxxx").Value = ThisWorkbook.Sheets("sheet2").Range("a1")
    and replace the cell number (a1 in this case)?

    Also, if this method is incorrect and you know of an easier way to make this work, please feel free to share that with me, it's greatly appreciated!

    Thanks in advance for your help!
    Last edited by 3x0dus; 05-11-2020 at 10:49 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] run-time error '-2147467259 (80004005)' when sending emails via vba
    By drexcel7 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-11-2020, 01:37 PM
  2. Run time error -2147467259(80004005) for using ADODB.Connection
    By VBALearn12 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-05-2019, 05:57 AM
  3. Run time error'-2147467259(80004005)':
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2014, 12:27 AM
  4. run-time error '-2147467259(80004005)':
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-02-2014, 03:46 AM
  5. [SOLVED] Run-time error '-2147467259(80004005)'
    By Lloyd Blankfein in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-14-2013, 01:52 PM
  6. Run time error '-2147467259 (80004005) adding icon
    By DMc2005 in forum Excel General
    Replies: 3
    Last Post: 10-02-2005, 12:05 PM
  7. Run time error '-2147467259 (80004005) adding icon
    By DMc2005 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2005, 12:05 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