Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Archive Attribute Excel 2003


I need to know more about this attribute. I have several .xlA file
(not installed as 'AddIns' in Excel) containing VBA code; these file
are digitally signed and run on a network. It makes sense to me tha
Excel would mark these with the 'Archive' Attribute.

The above .xlA files update (bring in new data and save the revise
.xlS files), on a daily basis, two .xlS data files. It puzzles me tha
Excel also marks these with the 'Archive' Attribute. There is zero VB
code in these .xlS files.

Thanks in advance,
Chuckles12

--
Chuckles12
-----------------------------------------------------------------------
Chuckles123's Profile: http://www.excelforum.com/member.php...fo&userid=1494
View this thread: http://www.excelforum.com/showthread.php?threadid=54048

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Archive Attribute Excel 2003

Hi Chuckles123,

Chuckles123 wrote:
I need to know more about this attribute. I have several .xlA files
(not installed as 'AddIns' in Excel) containing VBA code; these files
are digitally signed and run on a network. It makes sense to me that
Excel would mark these with the 'Archive' Attribute.

The above .xlA files update (bring in new data and save the revised
xlS files), on a daily basis, two .xlS data files. It puzzles me that
Excel also marks these with the 'Archive' Attribute. There is zero
VBA code in these .xlS files.


The Archive file attribute is set when a new file is created. It should be
removed by any application that does a backup of the file. Hence, the
Archive attribute is more to tell backups programs whether or not a file has
been backed up, not whether or not it contains code.

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Archive Attribute Excel 2003


Thanks for the education.

I was thinking that the 'Archive' Attrubute had more to do with th
existence of the digital signature than whether the .xlS files contai
VBA code. But you straightened me out.

Occasionally, my macros crash. The most common problem involves th
data files. One data file is saved daily by the following code:

oWBook.SaveAs _
Filename:=strFileName, _
FileFormat:=xlNormal, _
Password:="", _
WriteResPassword:="", _
ReadOnlyRecommended:=False, _
CreateBackup:=False

The other data file is saved merely by: oWBook.Save.

I am assuming that the above code will always result in the 'Archive
Attribute being "checked", regardless whether there was a "check-mark
prior to the save command.

I am also assuming that whether there is such a "check-mark" would hav
zero impact on any of my macro crashes.

Just looking for confirmation of the above.

Thanks in advance,
Chuckles12

--
Chuckles12
-----------------------------------------------------------------------
Chuckles123's Profile: http://www.excelforum.com/member.php...fo&userid=1494
View this thread: http://www.excelforum.com/showthread.php?threadid=54048

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Archive Attribute Excel 2003

Hi,

Chuckles123 wrote:
Occasionally, my macros crash. The most common problem involves the
data files. One data file is saved daily by the following code:


When you say "crash" - do you mean a true crash of Excel, or do you just get
a runtime error?

oWBook.SaveAs _
Filename:=strFileName, _
FileFormat:=xlNormal, _
Password:="", _
WriteResPassword:="", _
ReadOnlyRecommended:=False, _
CreateBackup:=False

The other data file is saved merely by: oWBook.Save.

I am assuming that the above code will always result in the 'Archive'
Attribute being "checked", regardless whether there was a "check-mark"
prior to the save command.


I believe the saved file will always have the Archive atrribute set, but
you'd have to test to verify.

I am also assuming that whether there is such a "check-mark" would
have zero impact on any of my macro crashes.


Right.

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]


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
Excel common attribute list kiteboy Excel Discussion (Misc queries) 2 April 28th 08 07:50 PM
Keep schemaLocation attribute when saving to XML data from Excel Erik Braten Excel Discussion (Misc queries) 0 May 4th 07 04:35 PM
Caption attribute at Cell in Excel XML dob_xml Excel Discussion (Misc queries) 0 November 27th 06 12:05 PM
How do I change the default attribute in excel? worken Excel Discussion (Misc queries) 2 January 31st 06 01:56 AM
the attribute "nullable" is not supported in convert excel to xml Guttjung Excel Discussion (Misc queries) 0 June 27th 05 10:35 AM


All times are GMT +1. The time now is 05:08 AM.

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

About Us

"It's about Microsoft Excel"