C
Chris L. Beltz
All,
I have noted that in Excel 2K, the cell validation functionality does
not work for pasted values. In short, I can copy "abc" from notepad
and paste it into a cell requiring a numeric value w/o an objection.
This is a problem for an application I am creating. This application
has a range of values (say A1 to A500) where the user will copy/paste
values into this range from another workbook. These values should all
be numeric, but there is a potential that some will not.
Is there any way to evaluate the values in the copied range (on the
clipboard) before they are pasted? If so, I was thinking that I could
remap ctrl+v to some code which would loop through the values of each
cell in the range, and allow the paste if they are all acceptable.
I know that I could inspect the range using the change event and undo
the paste, but I was wanting to see if there was a "cleaner" way to do
this.
Thanks,
Chris
I have noted that in Excel 2K, the cell validation functionality does
not work for pasted values. In short, I can copy "abc" from notepad
and paste it into a cell requiring a numeric value w/o an objection.
This is a problem for an application I am creating. This application
has a range of values (say A1 to A500) where the user will copy/paste
values into this range from another workbook. These values should all
be numeric, but there is a potential that some will not.
Is there any way to evaluate the values in the copied range (on the
clipboard) before they are pasted? If so, I was thinking that I could
remap ctrl+v to some code which would loop through the values of each
cell in the range, and allow the paste if they are all acceptable.
I know that I could inspect the range using the change event and undo
the paste, but I was wanting to see if there was a "cleaner" way to do
this.
Thanks,
Chris