What you see is what I want
It would be extremely difficult to do that in a UDF. The normal way is to
copy the formatted cell to a cell in an empty column and Autowidth. Another
less common but more accurate way is with an AutoSize textbox. Either way
means code to change the interface, which of course is not (normally)
possible in a UDF.
Maybe a Change event would suit your purposes.
Regards,
Peter T
"Gary''s Student" wrote in message
...
I am looking for a UDF that will return the visible text in a cell. For
example, if A1 contains the sentence:
"Now is the time for all good men to come to the aid of their party"
The end of the sentence will "bleed" over into B1 unless column A is very
wide. I want to see the portion of the sentence that actually appears in
A1.
I have been able to get this with a Sub, but not a Function.
--
Gary''s Student - gsnu200905
|