Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Kamran Kamran is offline
external usenet poster
 
Posts: 80
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro in Text Form Field Debra Ann Microsoft Word Help 1 June 27th 08 01:06 PM
Can I create a macro that includes a drop-down form field? CRIS Microsoft Word Help 1 August 31st 07 05:55 AM
Form Fields Macro on exit problem Bruce P. Microsoft Word Help 1 April 19th 07 06:02 PM
Validate form field Amy Microsoft Word Help 2 October 10th 05 06:26 PM
How do I create an on-exit macro? KamiBell Microsoft Word Help 1 September 29th 05 09:24 PM


All times are GMT +1. The time now is 04:14 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"