+ Reply to Thread
Results 1 to 3 of 3

Embedding attributes within an Excel sheet

  1. #1
    Registered User
    Join Date
    06-26-2009
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Embedding attributes within an Excel sheet

    I have written some code that automatically inserts a new sheet into a user's open workbook, based on an .xltx template.

    Works fine.

    I would now like to store some hidden information along with that new sheet - just some metadata that will be used to process it later on. I could do this by also inserting a hidden sheet into the workbook, but this decoupling could cause trouble later (for instance if the user copy-pasted this sheet into a brand new workbook).

    Is there any area within a sheet, or some sort of excel hack, that would allow me to store some key value pairs with the sheet, but without the user needing to know about it?

    Thanks in advance.

    (ps - am currently using vsto/excel07, but am happy to panelbeat something else)

    KevinT

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Embedding attributes within an Excel sheet

    You could add some defined Names to that sheet and assign values to them. You can hide the names so that they don't appear in the names dialog. For example:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    06-26-2009
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Thumbs up Re: Embedding attributes within an Excel sheet

    That is _exactly_ what I was looking for.

    Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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