Good question. I guess I would also have to know how to limit the amount of
text in each cell. I have been trying VB code with MaxLenth and AutoTab, but
have not been successful yet. If anyone knows how to write these
subs,macros,properties, or however they should be set up to be effective,
please let me know! Thanks!
> How will Excel know the cell is full?
>
> Gord Dibben MS Excel MVP
>
> >I have a similar problem of trying to wrap text to a separate, non adjacent
> >cell when the first is full. Any help would be appreciated. Thanks!
Dave Peterson - 13 Feb 2008 19:08 GMT
Macros won't run while you're entering a value/formula in a cell. So that
approach won't work.
You could use data|validation, but it only catches restrictictions when the user
tries to leave the cell (or hit enter). This probably wouldn't work the way
you'd like.
One approach may be to design a userform with a textbox that gets the value from
the user. You can determine the length of the textbox after each change the
user makes.
When the limit is reached, you could do what you want.
Here are a couple of references:
Debra Dalgleish's site:
Http://contextures.com/xlUserForm01.html
and these articles by Peter Aiken:
http://msdn2.microsoft.com/en-us/library/aa155729(office.10).aspx
http://msdn2.microsoft.com/en-us/library/aa155610(office.10).aspx
> Good question. I guess I would also have to know how to limit the amount of
> text in each cell. I have been trying VB code with MaxLenth and AutoTab, but
[quoted text clipped - 8 lines]
> > >I have a similar problem of trying to wrap text to a separate, non adjacent
> > >cell when the first is full. Any help would be appreciated. Thanks!

Signature
Dave Peterson