A
Aussie Susan
Visio 2003:
I am creating a 'search' function form in VBA and I want to allow the user
to enter a value in the same format as they would in a shapesheet cell: i.e.
"8 eh." would be 8 elapsed hours. This is similar to when I enter a value in
(say) the 'Custom Properties' form.
However, when I perform the comparison with the cell value for a shape, (for
various reasons) I'm using the 'Results(visNone)' function to retrieve the
cells value which always returns the cell value in its 'native' form: i.e. "8
eh." comes back as 0.333333...
I am currently using an otherwise unused page shapesheet cell to store the
user entered string and then retrieve the value so that I can make a proper
comparison (if the user enters "8 eh." and is looking for shapes with a value
greater than this, then having the cell return 12 elapsed hours as 0.5 then
the comparison will be wrong!)
Is there a VBA function that I can call which will interpret a string value
in the same way that the shapesheet cells would interpret the string?
Something like the 'EvalText' shapesheet function would be exactly what I'm
after.
Thanks
Susan
I am creating a 'search' function form in VBA and I want to allow the user
to enter a value in the same format as they would in a shapesheet cell: i.e.
"8 eh." would be 8 elapsed hours. This is similar to when I enter a value in
(say) the 'Custom Properties' form.
However, when I perform the comparison with the cell value for a shape, (for
various reasons) I'm using the 'Results(visNone)' function to retrieve the
cells value which always returns the cell value in its 'native' form: i.e. "8
eh." comes back as 0.333333...
I am currently using an otherwise unused page shapesheet cell to store the
user entered string and then retrieve the value so that I can make a proper
comparison (if the user enters "8 eh." and is looking for shapes with a value
greater than this, then having the cell return 12 elapsed hours as 0.5 then
the comparison will be wrong!)
Is there a VBA function that I can call which will interpret a string value
in the same way that the shapesheet cells would interpret the string?
Something like the 'EvalText' shapesheet function would be exactly what I'm
after.
Thanks
Susan