Word ASK, IF, FIELD and REF

Word ASK, IF, FIELD and REF

Didn't find your answer?

Hello

Word has never been my forte so any help would be appreciated.

I've been messing with these commands but not having a great deal of success.

I want word to ask a question, then depending on the response (Y/N), print a specified paragraph of text from the same document, or exclude it if the condition is not met.

Thanks

Replies (2)

Please login or register to join the discussion.

Simon Hurst
By Simon Hurst
02nd May 2014 16:40

Word fields

Without using VB code, I think one way to do this would be to use an ASK field to prompt the user for an input. ASK creates a bookmark that holds your response. You could then use an IF field to include your text depending on the value of the bookmark. Here our ASK bookmark is IncludePara and the user has to enter Y for the paragraph to be included. For your example, "blank text" would be omitted:

IF IncludePara = "Y" "mytext" "blank text"

Remember you will need to use F9 to update each field to test it as you go and you can use Alt+F9 to toggle between field code display and result display for the whole document.

I hope this helps.

Thanks (1)
avatar
By paul.k2
03rd May 2014 07:09

Forms

I wonder if a User Defined Form might be better for this.

It would allow you to use Radio Buttons to offer the options. You can then test for the selected radio button and insert the relevant text at the book mark.

Paul

www.kellysolutions.co.uk

 

Thanks (0)