Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2006

Tip: Looking for answers? Try searching our database.

Re: If statements in Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael P - 05 May 2006 11:33 GMT
I am relatively new to coding in word and have a problem with an if
statement. I'm not even sure what I want to do can be done, but I have an
this statement that looks to the conditionality of an Ask (ASK A). If the
value of the ask is equal to 'Y' then another four Asks (ASK B,C,D,E) are
executed. This side of the statement works fine, it's the other side of the
conditonality that causes the problem. If the initial Ask value is not equal
to 'Y' I need to manually assign values to the 4 ask values (B,C,D,E), as
apposed to prompting the user for them.

Everything that I have tried has failed so far. Any suggestions would be
greatly appreciated.

Thanks.


Graham Mayor - 05 May 2006 12:03 GMT
This is not vba but field programming and you need something like:

{ ASK  A "Yes or No" }{ IF{ A \*Upper} = "Y*" "{ ASK B Prompt2 }{ Ask C
Prompt3 }" "{ SET B 3 }{ SET C 4 }" }
{ A \*Upper } { B } { C }

The second line demonstrates the content of the bookmarks B & C. You should
be able to work out the rest from that.

> I am relatively new to coding in word and have a problem with an if
> statement. I'm not even sure what I want to do can be done, but I
[quoted text clipped - 10 lines]
>
> Thanks.
Michael P - 05 May 2006 12:17 GMT
Thanks Graham.

> This is not vba but field programming and you need something like:
>
[quoted text clipped - 19 lines]
> >
> > Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.