Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Revision number

There's an option to read a revision number of the workbook with:

MsgBox ThisWorkbook.BuiltinDocumentProperties("Revision number")

-...but how to set this 'Revision number'???

If I use...

ThisWorkbook.BuiltinDocumentProperties("Revision number") = "v1.00"

....I get an error???


CE


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Revision number

Hi Charlotte,

Am Mon, 27 May 2013 14:42:17 +0200 schrieb Charlotte E.:

ThisWorkbook.BuiltinDocumentProperties("Revision number") = "v1.00"


this property doesn't accept strings
Try:
Dim ObjBDP As Object

Set ObjBDP = ThisWorkbook.BuiltinDocumentProperties
ObjBDP("Revision number") = 1#

or:

ThisWorkbook.BuiltinDocumentProperties(8) = 1


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Revision number

Charlotte E. wrote:
There's an option to read a revision number of the workbook with:

MsgBox ThisWorkbook.BuiltinDocumentProperties("Revision number")

-...but how to set this 'Revision number'???

If I use...

ThisWorkbook.BuiltinDocumentProperties("Revision number") = "v1.00"

...I get an error???


CE




You can set it to number but not string even if property type says it is
msoPropertyTypeString

That is Microsoft.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default Revision number

You can set it to number but not string even if property type says
it is msoPropertyTypeString



Thanks - that explains it ...


CE



Den 27.05.2013 15:28, witek skrev:
Charlotte E. wrote:
There's an option to read a revision number of the workbook with:

MsgBox ThisWorkbook.BuiltinDocumentProperties("Revision number")

-...but how to set this 'Revision number'???

If I use...

ThisWorkbook.BuiltinDocumentProperties("Revision number") = "v1.00"

...I get an error???


CE




You can set it to number but not string even if property type says it is
msoPropertyTypeString

That is Microsoft.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 277
Default Revision number

On Mon, 27 May 2013 08:28:46 -0500, witek
wrote:

Charlotte E. wrote:
There's an option to read a revision number of the workbook with:

MsgBox ThisWorkbook.BuiltinDocumentProperties("Revision number")

-...but how to set this 'Revision number'???

If I use...

ThisWorkbook.BuiltinDocumentProperties("Revision number") = "v1.00"

...I get an error???


CE




You can set it to number but not string even if property type says it is
msoPropertyTypeString

That is Microsoft.


One can manually set a 'version number' as one of the extended file
properties from within file manager (right click on the file name). so
that property, once set, should show up somewhere within one of the
property dialog/listings within the document itself, providing knowledge
of the location. I currently do not know where it resides within the
document. Only from the file level..


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 147
Default Revision number

CellShocked wrote:
On Mon, 27 May 2013 08:28:46 -0500, witek
wrote:

Charlotte E. wrote:
There's an option to read a revision number of the workbook with:

MsgBox ThisWorkbook.BuiltinDocumentProperties("Revision number")

-...but how to set this 'Revision number'???

If I use...

ThisWorkbook.BuiltinDocumentProperties("Revision number") = "v1.00"

...I get an error???


CE




You can set it to number but not string even if property type says it is
msoPropertyTypeString

That is Microsoft.


One can manually set a 'version number' as one of the extended file
properties from within file manager (right click on the file name).


Excel will not read it if you set it to something else than number.
It will show it as damaged file.



so
that property, once set, should show up somewhere within one of the
property dialog/listings within the document itself, providing knowledge
of the location. I currently do not know where it resides within the
document. Only from the file level..



it is in core.xml file in unzipped doc.

The standard say it is string

<xs:element name="revision" minOccurs="0" maxOccurs="1" type="xs:string"/

Microsoft knows better what it should be.




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
XL 2003:Revision Number and Total Editing Time Boxes Are Empty thechandra Excel Discussion (Misc queries) 2 February 21st 08 12:01 PM
How do I retrieve entire Revision Number on Excel 2007? Zoo Excel Programming 1 February 19th 07 12:49 PM
Revision Number for an Add-In RST Excel Programming 6 October 31st 06 07:41 PM
Revision kbkst via OfficeKB.com Excel Discussion (Misc queries) 4 February 17th 06 07:12 PM
Revision Number John Excel Worksheet Functions 2 December 14th 04 05:29 PM


All times are GMT +1. The time now is 02:07 PM.

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"