Re: How to validate WORD 2007 forms using VBA



Is the information just typed somewhere in the regular text of the document?
Or is it in a bookmark, or in a table cell, or in a content control, or some
other place that's recognizable?

YesHoney wrote:
My problem is I dont know how to refer to data typed by user. Say
the WORD 2007 form (not a userform created via VBA) requests AGE and
I want to validate age is in certain range. My problem is how to
pass the TYPED age to VBA. Using legacy tools it's simple. But I'd
like to do it without the legacy tools.
Thx for payin attention to my request.


"Jay Freedman" wrote:

YesHoney wrote:
I have created a WORD 2007 form (without using legacy tools). How
to validate input?

That's nowhere near enough information.

If you didn't use legacy tools, what did you use?

What rules should be followed to validate the input? What is the
input supposed to be? Where is it? Do any of the inputs depend on
other inputs? What do you want to do if any input is not valid?

There are probably quite a few other questions to answer as the
design becomes more detailed, but those are the minimum.

--
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.


.



Relevant Pages

  • Re: How to validate WORD 2007 forms using VBA
    ... "Jay Freedman" wrote: ... I want to validate age is in certain range. ... Using legacy tools it's simple. ...
    (microsoft.public.word.vba.general)
  • Re: How to validate WORD 2007 forms using VBA
    ... "Jay Freedman" wrote: ... I want to validate age is in certain range. ... Using legacy tools it's simple. ...
    (microsoft.public.word.vba.general)
  • Re: How to validate WORD 2007 forms using VBA
    ... 2007 form (not a userform created via VBA) requests AGE and I want to ... validate age is in certain range. ... Using legacy tools it's simple. ...
    (microsoft.public.word.vba.general)
  • Re: VMS 30th anniversary Oldest VMS system contest
    ... based on the age of the oldest running system registered with them. ... April to validate the entry, which I did, so I know things were moving ... request that I sent out to my email distribution lists for system up ...
    (comp.os.vms)
  • VMS 30th anniversary Oldest VMS system contest
    ... HP supposedly selected the winner of an Itanium server ... based on the age of the oldest running system registered with them. ... April to validate the entry, which I did, so I know things were moving ...
    (comp.os.vms)