Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default System Error &H80004005 (-2147467259). Unspecified error

You'll get that error if the workbook has never been saved.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"Shimmess" wrote in message
...
I have some code that reads in the last save data of an excel file using

MD = wb.BuiltinDocumentProperties("Last Save Time")


I came across a group of excel files that I tried running these on and got
the following error:

System Error &H80004005 (-2147467259). Unspecified error

What could cause this? Shouldn't every excel file have a Last Saved Time?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default System Error &H80004005 (-2147467259). Unspecified error

How is it possible for it to never have been saved? Wouldn't the first
creation of an excel file require a save action? how do I error handle
around it?

"Chip Pearson" wrote:

You'll get that error if the workbook has never been saved.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"Shimmess" wrote in message
...
I have some code that reads in the last save data of an excel file using

MD = wb.BuiltinDocumentProperties("Last Save Time")


I came across a group of excel files that I tried running these on and got
the following error:

System Error &H80004005 (-2147467259). Unspecified error

What could cause this? Shouldn't every excel file have a Last Saved Time?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default System Error &H80004005 (-2147467259). Unspecified error

When you create a new workbook using CTRL+N or "New" file the file menu,
Excel creates new, unsaved, workbook called, for example, "Book1" (note that
this is not "Book1.xls"). At this point the workbook Book1 has never been
saved. To test whether a workbook has ever been saved to disk, test the Path
value for vbNullString. E.g.,

If Workbooks(1).Path = vbNullString Then
Debug.Print "'Path' is empty, thus never been saved"
Else
Debug.Print "'Path' has value, thus it has been saved. Needs saving
now?: " & _
CStr(Not Workbooks(1).Saved)
End If


If Path (the folder name that contains the workbook) is an empty string, the
workbook has never been saved.

The Saved property is True or False indicating whether the workbook has been
modified since it was last saved, regardless of the Path value.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)



"Shimmess" wrote in message
...
How is it possible for it to never have been saved? Wouldn't the first
creation of an excel file require a save action? how do I error handle
around it?

"Chip Pearson" wrote:

You'll get that error if the workbook has never been saved.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"Shimmess" wrote in message
...
I have some code that reads in the last save data of an excel file using

MD = wb.BuiltinDocumentProperties("Last Save Time")


I came across a group of excel files that I tried running these on and
got
the following error:

System Error &H80004005 (-2147467259). Unspecified error

What could cause this? Shouldn't every excel file have a Last Saved
Time?






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
System Error &H80004005 (-2147467259) Itzik Excel Discussion (Misc queries) 7 March 31st 11 10:45 AM
system Error &H80004005(-2147467259) jks Excel Discussion (Misc queries) 4 December 17th 08 09:50 PM
How to Overcome the System Error &H80004005 (-2147467259)? PK Excel Discussion (Misc queries) 2 December 24th 07 11:34 AM
How to overcome this System Error &H80004005 (-2147467259)? PK Excel Discussion (Misc queries) 0 December 17th 07 01:59 PM
&H80004005 (-2147467259) error when opening eurotool addin Peter from holland Excel Discussion (Misc queries) 1 October 11th 07 10:24 PM


All times are GMT +1. The time now is 12:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"