View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default File Properties Code

Look at document properties and builtindocument properties

See Chip Pearson's page on this topic:

http://www.cpearson.com/excel/docprop.htm

although not shown as a property in the object browser (or by intellisense),
this works



? activeworkbook.subject
This is the subject

Activeworkbook.Subject = "My new subject"
? activeworkbook.Subject
My new subject

Tested in Excel 2000.

--
Regards,
Tom Ogilvy

"John Michl" wrote in message
...
How can I manipulate the File Properties for a Workbook. I tried

recording
a macro following the keystrokes File | Properties and then entered data

for
Title, Subject and Author but nothing appeared in the macro.

I'm trying to use the subject field to record a version number and date

for
the model and transfer this exact data to a splash screen. My thought is
I'd entered the current version number and date in a cell which would be
transferred to the File | Properties when the workbook is saved and
transfers to the splash screen when the workbook is opened.

Thanks for the help.