Reply
 
Thread Tools Display Modes
  #1   Report Post  
Anna Cooper
 
Posts: n/a
Default IF Statements and REF Fields


Help! I am building a Word Template and need to do arithmetic with a REF
field. I have tried {={REF X}-1} and {={{REF X}-1}} to no avail. I also
tried {IF {REF X} = "Y" "W" "Z"} but that didn't work either. Any
ideas?


--
Anna Cooper
  #2   Report Post  
Graham Mayor
 
Posts: n/a
Default

What does the bookmark X contain - and what is it that is bookmarked.?
Your first example should work if X is a numeric value.
Your last example suggests that the content of X is a letter. How do you
subtract a number from a letter? If it contains a letter then your
conditional version will work. I take it that you are entering the field
boundaries with CTRL+F9 ? I would also urge you to use more descriptive
names for your bookmarks.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Anna Cooper wrote:
Help! I am building a Word Template and need to do arithmetic with a
REF field. I have tried {={REF X}-1} and {={{REF X}-1}} to no avail.
I also tried {IF {REF X} = "Y" "W" "Z"} but that didn't work either.
Any ideas?



Reply
Thread Tools
Display Modes

Posting Rules

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

Forum Jump


All times are GMT +1. The time now is 09:53 AM.

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"