D
David Thielen
Hi;
Some of this is repeats from below but I wanted to get everything in one list:
First off, this is for XLSX files only. It would be nice if it works for XLS
files too but that is not required.
Second, our AddIn needs to work with Excel 2000, 2002, 2003, & 2007 so any
solution needs to work on all 4. It's fine if I have to write different code
for each. And if there is just no way to do it on Excel 2000/2002 we might be
able to drop those two.
1) Attach our data to the file so that when we read in the file we can read
our data and when the file is saved, it saves our data with it. This data is
a single string that is a uuencoded set of data and is usally 5K - 20K long
but can be several hundred K in size.
2) Determine where the caret is and what text is selected when editing the
text of a cell.
3) Set some/all text in a cell while it is being edited. It's fine if we
always have to set all as we can read the cell text, replace the chunk we
want, and then write it all.
Note: On Excel 2007 at least it appears to be fine for our AddIn to be
called while editing a cell - it can read the cell contents fine. Writing
them appears to be ignored if we use Range.Value2 = "hi there";
4) Same question as (2) and (3) for comments - the ability to determine
where the caret is in them, what text is selected, and writing a new value
while the caret is editing them.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
Some of this is repeats from below but I wanted to get everything in one list:
First off, this is for XLSX files only. It would be nice if it works for XLS
files too but that is not required.
Second, our AddIn needs to work with Excel 2000, 2002, 2003, & 2007 so any
solution needs to work on all 4. It's fine if I have to write different code
for each. And if there is just no way to do it on Excel 2000/2002 we might be
able to drop those two.
1) Attach our data to the file so that when we read in the file we can read
our data and when the file is saved, it saves our data with it. This data is
a single string that is a uuencoded set of data and is usally 5K - 20K long
but can be several hundred K in size.
2) Determine where the caret is and what text is selected when editing the
text of a cell.
3) Set some/all text in a cell while it is being edited. It's fine if we
always have to set all as we can read the cell text, replace the chunk we
want, and then write it all.
Note: On Excel 2007 at least it appears to be fine for our AddIn to be
called while editing a cell - it can read the cell contents fine. Writing
them appears to be ignored if we use Range.Value2 = "hi there";
4) Same question as (2) and (3) for comments - the ability to determine
where the caret is in them, what text is selected, and writing a new value
while the caret is editing them.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm