G
Greg Maxey
I just posted a modification of my Table Cell Data Addin to my website:
http://gregmaxey.mvps.org/Table_Cell_Data_Word2007.htm
This version is for Word2007 and it uses Ribbon customization to display the
data in a "Table Information" tab that I added to the Table Tools tab.
I think it is pretty neat, but I am just a dabbler in XML and I am not sure
if there will be any ill effects of using the Ribbon in this perhaps
unconventional manner. I would appreciate any thoughts or advice on that
matter.
Secondly, if you download the Addin and look at the code, you will see that
I had a problem suppressing the display of the calculation results. My goal
is to show the results only after the Calculate button is depressed, but
then hide that label (e.g., set it to "") when the selection is moved. The
problem is with the value that the .Calculate method returns. It is a
Single and if the value is bogus (e.g., attempts to calculate a selection of
letters) it returns still returns 0. As a work around I picked a relatively
unique number .000000009000000001 and set the Calculation result label to ""
if the result of the calculation is .00000000090000000001. This of course
means that if the actual value of a calculated selection is
..00000000090000000001then the label will not display the answer. I am
looking for a way to set the Calculation result button to "" initially and
then reset it to "" when the selection is moved.
Thanks.
http://gregmaxey.mvps.org/Table_Cell_Data_Word2007.htm
This version is for Word2007 and it uses Ribbon customization to display the
data in a "Table Information" tab that I added to the Table Tools tab.
I think it is pretty neat, but I am just a dabbler in XML and I am not sure
if there will be any ill effects of using the Ribbon in this perhaps
unconventional manner. I would appreciate any thoughts or advice on that
matter.
Secondly, if you download the Addin and look at the code, you will see that
I had a problem suppressing the display of the calculation results. My goal
is to show the results only after the Calculate button is depressed, but
then hide that label (e.g., set it to "") when the selection is moved. The
problem is with the value that the .Calculate method returns. It is a
Single and if the value is bogus (e.g., attempts to calculate a selection of
letters) it returns still returns 0. As a work around I picked a relatively
unique number .000000009000000001 and set the Calculation result label to ""
if the result of the calculation is .00000000090000000001. This of course
means that if the actual value of a calculated selection is
..00000000090000000001then the label will not display the answer. I am
looking for a way to set the Calculation result button to "" initially and
then reset it to "" when the selection is moved.
Thanks.