View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default System Error &H80004005 (-2147467259)


"Chip Pearson" wrote in message
...
It doesn't take an Enigma machine to decrypt the error message, just a
trip to www.cpearson.com/Excel/FormatMessage.aspx. That page has some VBA
code that wraps up the API functions to get the system-defined error text
for a Windows API error number (Err.LastDLLError, not Err.Number).

Unfortunately, this particular error number is like a VBA 1004 -- it
indicates only that *something* went wrong with no clue as to *what* went
wrong. The system text for this error number is "Unspecified error".
You'd think that MS would give better, more meaningful error numbers, none
of this generic crap. An error is a Long, so you have 4 billion different
values. They could have assigned a unique error number of every single
line of code in all of Windows and still have items left over.



I meant that the OP could have been more thorough in describing in which
situation the error occurred


--

Regards,

Peo Sjoblom