System error h80004005 2147467259 неопознанная ошибка vba

I’m almost 100% certain I found a solution to this issue. It may have caused issues for someone else 4 years ago, but it caused issues for me today and I wanted to contribute my answer for anyone else running into the same problem.

I had enabled an «Additional Control» in the Controls Toolbox for Windows Media Player. I think when it loaded in a video file, it overran the memory. This is when I started panicking (company computer and all) and Googling and came across this and a few other articles without a real, fast fix.

The hunch: Once that video file was attempted to be loaded in RAM memory (because that’s how Userforms work) it locked up all the memory Excel would allow before throwing all the errors.

What I tried from other posts in various places: I rebooted a few times (before Googling, even). I tried the Quick Repair of Office from Add/Remove programs, that didn’t work. (I’m using Office 2016.)

So, what worked? I had the idea that maybe I could disable all ActiveX from loading in my file, and Googled that. I got: https://support.office.com/en-us/article/enable-or-disable-activex-settings-in-office-files-f1303e08-a3f8-41c5-a17e-b0b8898743ed and proceeded to disable all ActiveX controls in Excel. I closed the file out. Can’t recall if I closed Excel but I probably did.

Then I loaded up my file. (ActiveX is totally disabled at this time.) No errors! I went to VBA (ALT + F11), opened my UserForm, and the video I had inserted and could not remove was just… gone. I saved the file. I closed the file.

I opened Excel. I re-enabled ActiveX in the Trust Center. I opened my file. Still, no more video on my UserForm (I didn’t need it anyway) and no «Unspecified» (memory) errors! And, I can save again!

I hope this solution persists… if not I’ve got some «splainin’ » to do. So far, I’m designing and using the Userform, and saving the file, with no issues whatsoever. I think it worked!

  • Remove From My Forums
  • Question

  • Hello

    I have this error pop up from time to time and I haven’t figured out how to fix it. I’ll give some background.

    I developed a macro in Excel 2003 that runs a loop where outlook is called and an email is created and sent. The loop can potentially run a hundred times or more sending out that many emails. My computer was the first to run this program and I had no issues
    with it. It sent out over a hundred emails successfully. I then copied the program to another user in my office who also has 2003. It’s been running on that machine multiple times successfully. After a couple months I copied it again to another user in
    a different city. When he ran it it threw this error message after the first email was generated and sent…it never got to the second email. In all of his attempts it almost always blew up after one email…he claims, though, that one time he ran it it made
    it into the 20’s (over 20 emails sent) before the error was thrown. He was using 2007. I tried it on a user in my office who also has 2007 and he was able to send out about 10 emails before the error was thrown. I tried it on another user in our office who
    has 2007 and it ran perfectly sending out all the emails that were required to be sent. I then got our corporate help desk involved and the tech tried the program on their computer that has 2007 installed and it sent out 70+ emails before the error was thrown.
    The tech was at a loss to find a solution. Finally I installed it on another user in another city who has 2003 running on his machine and it sent out 55 emails before blowing up.Now, sometimes all of the emails are going to the same person (as a test) but
    that doesn’t seem to make a difference since the computers that run it successfully don’t seem to have a problem with it. When I googled the error I found it show up several times. Microsoft knows about it and they say the problem occurs when you use a UserForm.
    I don’t use a UserForm in my macro so that didn’t help me. The only thing I can think of is that it has something to do with the memory allocation on each computer. Some computers can handle more I suppose. Although I would think the one user I mentioned should
    be able to send out more that just one email. His memory can’t possibly be that taxed.

    Does anybody have any suggestions or have run into this before?

    Thanks

Answers

  • Error message starting with &H8 are usually permission type errors.  Either a pointer is addressing an area of memory that you don’t have permission to access, or a file permission error.  Sometimes it is linked to pushing/puling variables
    onto the stack when subroutines are called. This type error may occur if the parameters arren’t the same in the calling routine and a subroutine.

    I would open the task manager as you run the program and see how many processes are being spawned when the program is running.  You may be creating a lot of processes and having some sort of stack issue.


    jdweng

    • Marked as answer by

      Friday, September 16, 2011 10:38 AM

  • Home
  • VBForums
  • Visual Basic
  • Visual Basic 6 and Earlier
  • [RESOLVED] System Error &H80004005 (-2147467259). Unspecified error

  1. Dec 13th, 2013, 08:36 AM


    #1

    Coding is offline

    Thread Starter


    Hyperactive Member


    Resolved [RESOLVED] System Error &H80004005 (-2147467259). Unspecified error

    Hi everyone,

    I’m getting this error when ever I try to save my project with a Flash control in it:
    Name:  VB6-ERROR.png
Views: 26574
Size:  8.5 KB
    First of all, I would like to let you all know that I searched the forum for this thread,
    And yes, there are few thread with this same info related to my question, but after
    trying all those suggestions on those thread I still not able to solve my problem.
    All I know is that FLASH.OCX could not use v10 or v11, it must use an old version.

    I can’t understand, I always been using this method on my projects with any .swf
    and never had any problem with it, it just start it, and uninstall my VB and install it
    back, but still the same, the error is not letting save my project, compile it, nothing!

    I tried this fix from one of the thread I found in this forum:

    1.) Download the ocx www.afreeocx.com/ocx/info/flash10e_ocx.html
    2.) Find the original ocx (C:WINDOWSsystem32MacromedFlash)
    3.) Rename the original .ocx to something like Flash10hREAL.dll
    4.) Copy Flash10e.ocx into the folder and rename to Flash10h.ocx
    5.) Restart computer — PROBLEM SOLVED!

    But this fix some how did not worked for me.

    My project is very simple, a form and a Flash control and here is my code:

    Private Sub Form_Load()
    ShockwaveFlash1.Movie = «C:File.swf»
    ShockwaveFlash1.Play
    End Sub

    Would be nice if some one could help me out, thanks in advance

    Last edited by Coding; Dec 13th, 2013 at 08:40 AM.


  2. Dec 13th, 2013, 01:26 PM


    #2

    Coding is offline

    Thread Starter


    Hyperactive Member


    Re: System Error &H80004005 (-2147467259). Unspecified error

    Never mind, I solved this problem myself, thanks anyway


  3. Feb 9th, 2015, 09:55 AM


    #3

    Shohag_ifas is offline


    Hyperactive Member


    Re: System Error &H80004005 (-2147467259). Unspecified error

    Quote Originally Posted by Coding
    View Post

    Never mind, I solved this problem myself, thanks anyway

    hi, sir, i am facing the same issue. can you tell me how you solved that?

    i have tried a lot but nothing works ;(

    your kind help will be highly appreciated

    best regards


  4. Feb 11th, 2015, 02:51 AM


    #4

    Shohag_ifas is offline


    Hyperactive Member


    Re: [RESOLVED] System Error &H80004005 (-2147467259). Unspecified error


  5. Feb 26th, 2015, 12:04 AM


    #5

    Coding is offline

    Thread Starter


    Hyperactive Member


    Re: [RESOLVED] System Error &H80004005 (-2147467259). Unspecified error

    I sent you a message, but anyway try to follow the instructions I posted on post#1
    Download this ocx from this site: www.afreeocx.com/ocx/info/flash10e_ocx.html
    Then find the original ocx in: «C:WINDOWSsystem32MacromedFlash»
    Rename the original .ocx to something like Flash10hREAL.dll
    Copy Flash10e.ocx into the folder and rename to Flash10h.ocx
    Restart your computer


  6. Feb 26th, 2015, 12:10 AM


    #6

    Shohag_ifas is offline


    Hyperactive Member


    Re: [RESOLVED] System Error &H80004005 (-2147467259). Unspecified error

    Quote Originally Posted by Coding
    View Post

    I sent you a message, but anyway try to follow the instructions I posted on post#1
    Download this ocx from this site: www.afreeocx.com/ocx/info/flash10e_ocx.html
    Then find the original ocx in: «C:WINDOWSsystem32MacromedFlash»
    Rename the original .ocx to something like Flash10hREAL.dll
    Copy Flash10e.ocx into the folder and rename to Flash10h.ocx
    Restart your computer

    hi, thanks for your reply..

    but your solution has few issue:
    1. version is very old and security issue
    2. my other projects what i have saved long time ago. still works fine with flash object and it’s nothin wrong there. But few project where flash is not used and if i place and try to save the project then got that error

    however, thanks for your reply though

    best regards


  7. Feb 26th, 2015, 12:18 AM


    #7

    Coding is offline

    Thread Starter


    Hyperactive Member


    Re: [RESOLVED] System Error &H80004005 (-2147467259). Unspecified error

    You right about that, it happen to me too, the same thing, but you can backup the files and try,
    I did the same thing, then I went back to the one I had before and everything worked just fine.


  8. Feb 26th, 2015, 12:25 AM


    #8

    Coding is offline

    Thread Starter


    Hyperactive Member


    Re: [RESOLVED] System Error &H80004005 (-2147467259). Unspecified error

    Last edited by Coding; Feb 27th, 2015 at 12:10 AM.


  9. Mar 2nd, 2015, 01:18 PM


    #9

    Javier Reinoso is offline


    New Member


    Re: [RESOLVED] System Error &H80004005 (-2147467259). Unspecified error

    Another Solution more easy is this code, work with all versions of flash ocx in VB6, the new and old:
    In components Check the Shockwave Flash

    In the Project Properties UnCheck this CheckBox:
    Name:  unselect_in_project_properties.jpg
Views: 21618
Size:  49.5 KB

    At declarations of the Form put:
    Private WithEvents ShockwaveFlash1 As ShockwaveFlash

    At Form_Load put this:
    Set ShockwaveFlash1 = Form1.Controls.Add(«ShockwaveFlash.ShockwaveFlash», «ShockwaveFlash1»)

    And set the properties you like, work, and save the project without the error…

    The only problem I not solved is make the Flash Control Background Transparent, for Make Flash Control Transparent in VB6 appear to be need to put the WMode Property at Desing Time, appear to be need have the Flash Control in the Form before run, and with WMode = Transparent in the properties of the flash control at Desing Time — by default the control have the WMode = «Window», incl;usive loaded with code only, and in code not work change to «Transparent», in Desing Time if put WMode = «Opaque», work change to Transparent, but how I comment, I not find solution for Make the Flash Transparent if Loading with Code, not put in the Form at desing time -…

    And well, if a Flash Control are in the Form at Desing Time, when save the Project, do the error System Error &H80004005 (-2147467259)…

    I Leave an example…

    Good day…

    Last edited by Javier Reinoso; Mar 2nd, 2015 at 01:39 PM.


  • Home
  • VBForums
  • Visual Basic
  • Visual Basic 6 and Earlier
  • [RESOLVED] System Error &H80004005 (-2147467259). Unspecified error


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off

Forum Rules


Click Here to Expand Forum to Full Width

RRS feed

  • Remove From My Forums
  • Вопрос

  • Hello, on excell 2013 when running a VBA macro I have the following error message: Microsoft Visual Basic for Applications = System Error & H80004005 (-2147467259), Unspecified error, how could I fix this problem , Thank you

    • Перемещено
      Emi ZhangMicrosoft contingent staff
      1 марта 2018 г. 5:33
      Move

Все ответы

  • Hi,

    This is the forum to discuss questions and feedback for Microsoft Excel features, I’ll move your question to the MSDN forum for Excel

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you
    for your understanding.

    Regards,

    Emi


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact
    tnsf@microsoft.com.


    Click
    here to learn more. Visit the dedicated
    forum to share, explore and talk to experts about Microsoft Teams.

  • Hi,

    I’m afraid you need to provide your code related with the issue.
    It would be hard to make some suggestions only by «Unspecified error».

    If you don’t want to provide code, please search web by «System Error & H80004005 (-2147467259), Unspecified error», and you will find some articles.

    Regards,


    Ashidacchi

  • Hi,

    Thank you Ashidacchi !

    Wich code you mean ?

  • Hi,

    Thank you Ashidacchi !

    Wich code you mean ?

    Hi,
    «Which code»?? It’s only you who write code and encounter error. 
    I don’t know. so, I wrote «provide your code
    related with the issue
    «.
    Regards,


    Ashidacchi

  • Hi,

    There is the error «System Error & H80004005 (-2147467259)» it hasn’t any error code.

    Thx

  • Hello Papichou,

    >>on excell 2013 when running a VBA macro I have the following error message: Microsoft Visual Basic for Applications = System Error
    & H80004005 (-2147467259), 

    You said you got error when running a VBA macro, the code in the macro is what we want to know. Why do you say it hasn’t any code? Could
    you detail when will the error occur?

    Best Regards,

    Terry


    MSDN Community Support
    Please remember to click «Mark as Answer» the responses that resolved your issue, and to click «Unmark as Answer» if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
    MSDN Support, feel free to contact MSDNFSF@microsoft.com.

First i did looked at other threads and all the answer specified were didn’t helped, as i was getting this error only for specific SQL execution. Whenever i am trying to run SQL with select * from dual i was getting below error message.

enter image description here

Below is my VBA Code

Set cn = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
    StrCon = "Driver={Microsoft ODBC for Oracle}; " & _
            "CONNECTSTRING=(DESCRIPTION=" & _
            "(ADDRESS=(PROTOCOL=TCP)" & _
            "(HOST=dhotname)(PORT=1521))" & _
            "(CONNECT_DATA=(SERVICE_NAME=APSQ))); uid=username; pwd=password;"
cn.Open (StrCon)
vSQL = "select * from request" 
rs.Open vSQL, cn

Community's user avatar

asked Apr 1, 2016 at 21:52

Akshay's user avatar

7

I am putting solution here, which worked for me. In other similar post it was more over connectivity issue, but in my scenario it was one of the column in table i am trying to access. In my table i had column which is having timeStamp and that’s the column was causing above error, when i removed or used formatting for that column it worked without exception. I wonder if this error would have been more explanatory, as i spend time on trying other stuff instead of just fixing my SQL.

Solution:

Set cn = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
    StrCon = "Driver={Microsoft ODBC for Oracle}; " & _
            "CONNECTSTRING=(DESCRIPTION=" & _
            "(ADDRESS=(PROTOCOL=TCP)" & _
            "(HOST=dhotname)(PORT=1521))" & _
            "(CONNECT_DATA=(SERVICE_NAME=APSQ))); uid=username; pwd=password;"
cn.Open (StrCon)
vSQL = "select request_id,user_name from request" 
rs.Open vSQL, cn

Now if you look at above example i have specified exact column names, the issue here was REC_DT column which had time value. Either you can convert that value or remove column, for me that value was not required so just removed from my SQL and it worked.

enter image description here

answered Apr 1, 2016 at 21:55

Akshay's user avatar

AkshayAkshay

6472 gold badges17 silver badges37 bronze badges

Понравилась статья? Поделить с друзьями:
  • System componentmodel win32exception ошибка при создании дескриптора окна
  • System ck ошибка карриер 1300
  • System board 00a ошибка
  • System array empty ошибка
  • System aggregateexception произошла одна или несколько ошибок