+ Reply to Thread
Results 1 to 5 of 5

How to insert criteria into the FILE-PROPERTIES box from cells in a workbook?

  1. #1
    Registered User
    Join Date
    09-17-2008
    Location
    South East UK
    Posts
    14

    How to insert criteria into the FILE-PROPERTIES box from cells in a workbook?

    As the title suggests.

    Is there a way for the File-Properties-Summary box to be filled with certain data from cells within a workbook?

    Example, Book1, Cell A1, contains the Author Name, and what ever is in that cell will result in the Author Field in the File-Properties-Summary box being filled with that name?

    I've had a good search (google and here) but can see how to do the reverse, but not this way round.

    Thanks all.

    Mike
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    open the excel file
    Alt + F11
    Click the tab " This workbook"
    Paste the following code
    Please Login or Register  to view this content.
    save

    Ok

    Remember to make sure your security level is enable macro
    I need your support to add reputations if my solution works.


  3. #3
    Registered User
    Join Date
    09-17-2008
    Location
    South East UK
    Posts
    14
    I've checked and doubled checked, and it isn't working.

    I also tried substituting Author with Subject (as my name automatically comes up (from the registry?). As the subject field is always empty by default, I thought I'd try that, but it doesn't work.

    Any ideas?

    Thanks

  4. #4
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    I would suggest putting this in a before save macro rather than an on open macro. This means the change will be visible more immediately, it also means the summary field would be populated if the workbook was sent to another who has security on high (as default).

    Try this:
    Please Login or Register  to view this content.
    You may want to think about when you want this to run... when you change something on the sheet, when you open or close the workbook, when you save it... when you type "Gary is a big loser" in cell A14 on page 8... (all very easy to do!)

    The built in document properties are easy to refer to by index number but I find it much easier to see what you've done this way.

    Finally, check that your sheet is named "Sheet1" if not, amend as apt. The code I provide definitely works for me.

    HTH

  5. #5
    Registered User
    Join Date
    09-17-2008
    Location
    South East UK
    Posts
    14
    Excellent, thanks Charlie, and thanks sglife.

    Works a treat.

    Cheers

    Mike

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Read .xls data -> insert in .txt file
    By Bitter/Oso in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2009, 07:28 PM
  2. Macro to Lock cells in protected sheet depending on criteria
    By Zyphon in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-30-2008, 12:00 PM
  3. Auto-save a new file with data from 3 cells
    By Glio in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-02-2007, 07:29 PM
  4. Insert Copied Cells problem
    By r34302 in forum Excel General
    Replies: 0
    Last Post: 10-13-2006, 09:18 AM
  5. file summary properties help
    By rlc555 in forum Excel General
    Replies: 8
    Last Post: 10-06-2006, 07:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1