+ Reply to Thread
Results 1 to 4 of 4

Create a Spreadsheet for Metadata in VBA?

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Tolland, CT
    MS-Off Ver
    Excel 2007
    Posts
    37

    Create a Spreadsheet for Metadata in VBA?

    Hello forum goers,

    I am trying to create an array of arrays (list of lists...etc.) that can represent the cells on a worksheet. Basically I want to be able to store some metadata for each cell i.e. flags telling you if the cell is editable, if it is empty, etc...

    What i'm really trying to do is create a more advanced spreadsheet where each "Cell" is essentially a list.

    Is there some way to do something like this?:
    Please Login or Register  to view this content.
    I also want the columns to contain a list as well so I can have multiple flags in one "cell"

    For example the list in one cell could be:
    (1,0) is editable? yes. is empty? No.

    Let me know if you need more clarification.

    Thanks,

    Publius

    Edit: Ok I thought of a good way to handle the multiple flags in one cell problem.
    I can just fill each slot with seperate class objects. So i'll make a Cell Class module with all of the booleans i need.

    My question still stands for the list of list needed to store these cells.
    Last edited by publius190; 12-11-2013 at 03:15 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Create a Spreadsheet for Metadata in VBA?

    There's a macro (a bas file) at https://app.box.com/s/z6qv4zbz8xy17d5ziesn that does something vaguely like you describe.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Create a Spreadsheet for Metadata in VBA?

    What's the goal of this?

    I ask as on the face of it, it doesn't sound like a particularly good idea, it seems to me like a sure fire way to grind your spreadsheet to a halt. I imagine that it would be incredibly painful to ensure that your model remains in sync with the cells - capturing whenever a user changes something and sync this back to the model will be arduous and long winded. I'd be tempted to write a set of functions that you can pass a range to and it will return whether the cell is editable etc, much less work and much more reliable.

  4. #4
    Registered User
    Join Date
    06-21-2012
    Location
    Tolland, CT
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Create a Spreadsheet for Metadata in VBA?

    Yeah the function idea worked great. I just created some new ranges which are essentially these flags, and add/remove cells from them as the user inputs data. Thanks for the idea!

+ 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. Get HTTP MetaData into Excel
    By XLS_Gunda in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-04-2013, 02:25 AM
  2. edit pdf metadata by vba
    By Chandrajit in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2013, 02:17 PM
  3. Replies: 4
    Last Post: 12-24-2012, 12:21 PM
  4. List files with VBA - metadata
    By mkvassh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2010, 07:20 AM
  5. Audio Files Metadata
    By Pflugs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2006, 12:15 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