Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Foz Foz is offline
external usenet poster
 
Posts: 1
Default Can I use file information (title, subject,) as fields in Excel?

Can I use file information (title, subject) as fields in excel like you can
in Word?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Can I use file information (title, subject,) as fields in Excel?

You can create tiny functions (UDFs) to get you the information. For example:

Function author()
author = ActiveWorkbook.BuiltinDocumentProperties(3)
End Function


So in a worksheet


=author()


will display the author's name.


User Defined Functions (UDFs) are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the UDF in and close the VBE window

If you save the workbook, the UDF will be saved with it.

To remove the UDF:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about UDFs and macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm




--
Gary''s Student - gsnu200742


"Foz" wrote:

Can I use file information (title, subject) as fields in excel like you can
in Word?

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
Subject line in email defaults to workbook file name. swellett Excel Discussion (Misc queries) 2 March 17th 06 04:35 PM
Excel XP: File name in Title Bar not changed after Save As... Dominic Excel Discussion (Misc queries) 9 August 1st 05 12:58 PM
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 extract information from excel and put in certain fields. Novice Excel Discussion (Misc queries) 2 February 9th 05 07:12 PM
My Excel Title bar does not indicate what file is open bobs walk Excel Discussion (Misc queries) 2 November 28th 04 04:09 PM


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