Restricted area text input in Word?

M

Marcel

Hi,

Is it possible to restrict the total length of text input over a certain
area with VBA?

The length from Begin to End is fixed, let's asume 2 pages. The area's 1, 2,
3 are dynamical of size but restricted by the total lengt of Begin - End.

Begin----- start area 1-----


----------- start area 2 ----


----------- start area 3 ----


------------------------End

Is it possible to maintain this with VBA?

TIA,

Marcel
 
J

Jezebel

Very difficult to do while the user is actually entering text. You could set
a timer that periodically checks the total length and annoys the user with
messages if they've gone too long. Messy coding and likely to be unfriendly
for the user. (You have to allow for the user to make mistakes like typing
the right text in the wrong place, then using cut and paste to correct --
for quite legitimate reasons the total length might temporarily be over
long.)

It's usually simpler to validate the document when the user does something
with it (eg saving or routing it). Check the length and if necessary warn
the user and/or prevent the save.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top