: Thanks guys.
:
: Paul's solution is near the mark, but lacks choice of function, so would
: require several buttons/macros.
:
: David's solution doesn't address the need to drop a single value into the
: clipboard.
:
: Obviously one could write a macro to interrogate a combo/list button (not
: that I have the skill), but that seems inelegant whilst that value must be
: around in the guts of excel somewhere.
:
: John B
Well, I wouldn't say the value 'must' be around since it's possible to store
things in class properties that are not publicly exposed. However, I did
note that this setting is saved since everytime you open Excel, it remembers
what setting you last used. I found that the following registry key (on my
computer) stores these settings.
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel\Options
here are the values for each setting
Average = 5
Count = a9
Count Nums = 0
Max = 7
Min = 6
Sum = 4
None = ffffffff
Unfortunately, it appears excel writes this data only when you exit, so if
the user changed the setting while in excel, I don't know of any way to find
the value. If you wanted to know what the original value was at time of
opening, just read the registry and compare to the list. Not sure if this
helps but that's all I could find.
Paul D