PC Review


Reply
Thread Tools Rate Thread

Alter build-in properties

 
 
ElmerS
Guest
Posts: n/a
 
      4th Jun 2010

Hi,

I saw the following thread and thought it can be adopted also for
altering the Creation Date of a "Word" Document.

I tried to run the suggested commands, in the Immediate window (after
replacing ActiveWorkbook with ActiveDocument).

Unfortunately, the creation date was not changed - not even with the
simple "Excel like" command:

ActiveDocument.BuiltinDocumentProperties(11).Value = Date

Is there an easy way to alter that date ?

http://www.excelforum.com/excel-prog...roperties.html

Thanks, Elm




--
ElmerS
 
Reply With Quote
 
 
 
 
Jay Freedman
Guest
Posts: n/a
 
      5th Jun 2010
Hi Elmer,

Sorry, what works for Excel does not work for Word.

The help topic on the BuiltInDocumentProperties collection for Excel
VBA says that its members are read-only, but that isn't true. You can
write to at least some of those properties and actually change their
values; "Creation Date" is one of those.

The BuiltInDocumentProperties items in Word really are read-only. You
won't get an error if you try to write to them, but there is no way --
not easy, not hard, NO way -- to alter them via VBA.

The one thing you can do to change the creation date is to use SaveAs
to save the document to another name; then delete the original file
and rename the new one to the old name. The creation date will be the
date of the SaveAs. If you don't want it to be the current date,
temporarily change the computer's clock.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.


On Fri, 4 Jun 2010 23:19:12 +0100, ElmerS
<(E-Mail Removed)> wrote:

>
>Hi,
>
>I saw the following thread and thought it can be adopted also for
>altering the Creation Date of a "Word" Document.
>
>I tried to run the suggested commands, in the Immediate window (after
>replacing ActiveWorkbook with ActiveDocument).
>
>Unfortunately, the creation date was not changed - not even with the
>simple "Excel like" command:
>
>ActiveDocument.BuiltinDocumentProperties(11).Value = Date
>
>Is there an easy way to alter that date ?
>
>http://www.excelforum.com/excel-prog...roperties.html
>
>Thanks, Elm

 
Reply With Quote
 
ElmerS
Guest
Posts: n/a
 
      5th Jun 2010

Thank you, Jay,

Although it is Very "Disappointing" at least I have got an educate
answer.

Will use the alternative way.

El


--
ElmerS
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
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
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alter build-in properties ElmerS Microsoft Word Document Management 0 4th Jun 2010 11:06 PM
Alter properties of pop-up form =?Utf-8?B?YXJpc3RhZXVz?= Microsoft Access 1 5th Apr 2007 03:50 PM
Alter table properties =?Utf-8?B?THVpcw==?= Microsoft Access VBA Modules 2 29th Apr 2005 10:36 AM
How can I alter Event Log properties programmatically in Dot.Net? =?Utf-8?B?Q29tU2F0MUBjb21tdW5pdHkubm9zcGFt?= Microsoft Dot NET 1 15th Dec 2004 06:04 AM
alter properties of subForm control Geof Wyght Microsoft Access Form Coding 20 11th Oct 2004 03:31 PM


Features
 

Advertising
 

Newsgroups
 


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