VSTO: Attach meta-data to a cell in Excel?

前端 未结 5 730
刺人心
刺人心 2021-02-14 05:11

I\'m using VSTO to create an Excel Add-on. This add-on retrieves and display alot of data from a sql-server. This works great, but later on I plan to access some of the data ins

5条回答
  •  有刺的猬
    2021-02-14 06:07

    I don't recall a way to do exactly what you are asking. What I've seen done in the past was setting range names based on what you might want to look up. Another option is to hide a cell next to it or some other predetermined offset (e.g. always 3 cells to the right, or same position but on a hidden page). The hidden cell/page would have the data you would be looking for.

    One thing that seems to have accidentally emerged as a best practice at the accounting firm I used to work for was that you should push all your data into an "ugly" page that is hidden and use formulas/lookups to refer to your data. That way you can update the "ugly" page and know where data is while having a "pretty page" that the users can monkey up to their hearts' content.

提交回复
热议问题