If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
Supress blank lines in DOCPROPERTY field
Jay:
Great, I'm going to explore those links in a little while while my fieldcode taste-buds are still afire. "Jay Freedman" wrote in message ... Hi Mary Glad it finally worked out. As for the answers being in the Help -- ha! The Help is somewhat bare-bones on the subject, even when you can figure out the right search terms (and the search engine has been getting worse through successive releases -- Office 2003 is the worst yet, and the MVPs have made sure MS knows it). In the Word 2000 Help, read the entries "Field codes: If field" and "Examples of IF fields". To understand some of the examples, you'll need "Field codes: = (Formula) field". Within that topic, there are links for "Operators" and "Functions" that are helpful. You might also get some use from the topic "Field codes: Compare field". The word.mvps.org site has some pages that discuss editing field codes, usually incidental to solving some other problem. For examples, see http://word.mvps.org/FAQs/Numbering/PageNumbering.htm http://word.mvps.org/FAQs/MailMerge/MMergeIfFields.htm http://word.mvps.org/FAQs/TblsFldsFm...ixCaptions.htm http://word.mvps.org/FAQs/TblsFldsFm...nPgEndChap.htm http://word.mvps.org/FAQs/TblsFldsFm...teFilename.htm -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Mary wrote: Jay, that did it! Thanks for being so persistent. Is there somewhere I can learn more about creating and editing field codes? -- I'm sure all the answers are somewhere within Word's Help but I never know the right questions to ask it. "Jay Freedman" wrote in message news Hi Mary One more try... I had a suspicion you were putting in a blank instead of deleting the property, but your description used different terms in different places and I wasn't sure. In the field code I gave you, take out the error message (Error! Unknown document property name.) and put in a single space between the quotes. In other words, you're changing the IF condition from 'if the field result is not the error message' to 'if the field result is not a single space character'. The rest of the field code remains the same. Note that if you type two or more spaces in the property dialog, the "blank" line (spaces and a paragraph mark) will appear. If it's just one space, both the space and the paragraph mark will disappear. "Mary" wrote: Hi Jay, Thank you for going to so much trouble. I did have the field codes exactly as you show them in your example. In your doc, I can't completely delete the value in the CCadd2 property -- I can replace it with a single space but this still allow a paragraph mark to print. The only way I can get it to behave is to delete the property name itself. While that has the desired effect in the document you provided, I'm not sure it will work in mine. I'm not the owner of the file. It's a proposal template and on first creating a new file based on the template, it's set up so that the user is first presented with a Document Properties window. Fill-ins on this screen are used to populate fields in the document itself. But if CCadd2 (or any other value) is not filled in, it will result in an empty paragraph and the property itself cannot be deleted on this window. Deleting it by going into File--Properties--Custom, results in an error message. So I'm guessing it's best to just live with the paragraph marks and delete them manually. |
|
Thread Tools | |
Display Modes | |
|
|