Solved

VB.net Excel Add-in Second value or tag for a cell

Posted on 2014-03-12
5
506 Views
Last Modified: 2014-03-13
Hi
I need to put some hidden information behind a cell, like a tag of sorts
I used the following but that just updated the actual cell value

 Globals.ThisAddIn.Application.ActiveCell.Value2 = oResult
0
Comment
Question by:murbro
  • 2
  • 2
5 Comments
 
LVL 14

Expert Comment

by:Zack Barresse
ID: 39925599
Unfortunately there is no such thing as meta data for cells. You could store information in your application settings. Or create a temporary, hidden sheet to store your data. Or even write it to a text or config file.
0
 
LVL 45

Expert Comment

by:aikimark
ID: 39925601
What type of data do you need to associate with a cell?
0
 

Author Comment

by:murbro
ID: 39925611
I just want to associate text data
0
 
LVL 45

Accepted Solution

by:
aikimark earned 500 total points
ID: 39925691
I would agree with Zack's assessment that a hidden worksheet might be the easiest implementation.

===============
Alternatively, you can use the cell's .ID property
Example:
Activecell.ID = "Now is the time for all good men"

Open in new window


===============
If it were feasible, you could disable visible notes (an option) and assign the .NoteText property of a cell.  The text is there, but the user wouldn't see the triangle indicator and the fly-out textbox wouldn't appear.

You might also do this with the .Comment property.

===============
You might also use the custom document properties (.CustomDocumentProperties) of the workbook to store data.  You would probably include the cell address followed by the text.
0
 

Author Closing Comment

by:murbro
ID: 39925796
Great answer. Exactly what I needed
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now