Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How can I create an exit macro to validate a Text Form Field?
Hello,
I need to create a macro that will ensure that input into a text form field is no higher than 99.9. I've tried using the Maximum Length feature, but I'm unable to use that properly with decimals because it won't automatically add a "0" decimal when using the mask "##.0" and it accepts numbers higher than 99.9 if I use the standard mask "#,##.0". Also, for example, it will turn "333" into "33.3" if I don't manually type in the decimal. So what I need is a field that will accept a "XX.X" format and reject anything higher than that. Thanks in advance. |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How can I create an exit macro to validate a Text Form Field?
On Fri, 24 Oct 2008 14:17:01 -0700, Kamran
wrote: Hello, I need to create a macro that will ensure that input into a text form field is no higher than 99.9. I've tried using the Maximum Length feature, but I'm unable to use that properly with decimals because it won't automatically add a "0" decimal when using the mask "##.0" and it accepts numbers higher than 99.9 if I use the standard mask "#,##.0". Also, for example, it will turn "333" into "33.3" if I don't manually type in the decimal. So what I need is a field that will accept a "XX.X" format and reject anything higher than that. Thanks in advance. See http://www.word.mvps.org/FAQs/TblsFl...ateFFields.htm. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro in Text Form Field | Microsoft Word Help | |||
Can I create a macro that includes a drop-down form field? | Microsoft Word Help | |||
Form Fields Macro on exit problem | Microsoft Word Help | |||
Validate form field | Microsoft Word Help | |||
How do I create an on-exit macro? | Microsoft Word Help |