Hi Jens
Jens Thomsen said:
Thanks!
But what I need to limit the amount of characters, dependign on the
cell.
The first answer did not help, it just did'nt display the rest of the
characters, if you continue to type, the bookmark get bigger but you
can't se it.
So the user stops writing, thereby achieving the effect desired, no?
The second answer is not what I was looking for, this can also be done
under properties.
I need a function to catch a kind of keypress event and then calculate
how manny characters has been written, and how manny can be written.
When the bookmark is full (the width as the cell) no more characters
could be written.
The only way that you can practially and easily achieve that is by using a
fixed width font like Courrier. The problem is that space available and
number of characters depend on the charcters being used. Very dificult to
have code handle that. Consider "mummy" and "billions", mummy has 5
characters and billions has 8 characters, but is shorter. So use a fixed
width font and the field property to limit the number of character to the
space available. Otherwise, Doug,s solution is the one commonly used.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org