Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default File, properties, title

Can I (both read and) set the 'Title' attribute for a file using VBA ? Is it
possible ?

If not, are you aware of any alternative tools I might use ?

I need to open a file, search for a string in that file, get the value next
to that string then set the 'Title' attribute of the file to the value
found.

Thanks, Eric.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default File, properties, title

Use

activeworkbook.BuiltinDocumentProperties("Title")

--
HTH

Bob Phillips

"Eric" wrote in message
...
Can I (both read and) set the 'Title' attribute for a file using VBA ? Is

it
possible ?

If not, are you aware of any alternative tools I might use ?

I need to open a file, search for a string in that file, get the value

next
to that string then set the 'Title' attribute of the file to the value
found.

Thanks, Eric.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default File, properties, title

activeworkbook.BuiltinDocumentProperties("Title")

I understand this is read only, can it be written to ?

Regards, Eric.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default File, properties, title

From the immediate window:

Activeworkbook.BuiltinDocumentProperties("Title"). Value = "Doghouse"
? Activeworkbook.BuiltinDocumentProperties("Title"). Value
Doghouse
Activeworkbook.BuiltinDocumentProperties("Title"). Value = "Thor"
? Activeworkbook.BuiltinDocumentProperties("Title"). Value
Thor

So looks like the answer is yes.

--
Regards,
Tom Ogilvy

"Eric" wrote in message
...
activeworkbook.BuiltinDocumentProperties("Title")

I understand this is read only, can it be written to ?

Regards, Eric.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default File, properties, title

Thanks to you both.

Eric.


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
printing 'title' from properties in header Sbone Excel Discussion (Misc queries) 0 December 3rd 08 10:41 PM
Why is the name I gave file not showing up in title bar when file ManhattanRebel Excel Discussion (Misc queries) 3 November 27th 07 06:06 PM
Properties - Title Corruption Virus? its_my_dime Excel Discussion (Misc queries) 1 December 1st 05 12:48 AM
Want file title listing as in Excel 5.0 File>Find jeffbro27707 Excel Discussion (Misc queries) 0 April 30th 05 07:31 PM
How do I get the file properties? Guy Cohen Excel Programming 4 January 30th 04 09:31 AM


All times are GMT +1. The time now is 11:42 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"