Word 365 Conditional Text to depend on Document Title. How? (w/o VBA)


  1. Posts : 19
    Windows 10
       #1

    Word 365 Conditional Text to depend on Document Title. How? (w/o VBA)


    How to have conditional text based on Document Property Title ? Different text for empty Title or NOT-empty Title

    On Main body of Document, ⒈ inserted QuickPart-DocmentProperty. ⒉ Define Bookmark DocPropTitle. ⒊Code as follows

    [CODE]{IF { REF DocPropTitle } <>"" "DocPropertyTitle will be used for FileName instead of 1st Paragraph; if NOT Ok, clear Title To Get Correct File Name in Save-As-Dialog-Box” “Save As Dialog Box will show 1st Paragraph. Please Add Period after First Character of Dialog-Box" } /CODE]

    If Statement is not recognizing Title content. It will flip to either output, if I change operator EQUAL to NOT-EQUAL.
      My Computer


  2. Posts : 19
    Windows 10
    Thread Starter
       #2

    Word IF statement deconstructs permanently when Criteria is blank


    After reboot, and cleaning what I think could be wrong, I am still facing Hurdles:

    1) IF statement Criteria disappear when Criteria change to Blank.
    Example using Bookmark DocProptTitle as Criteria, how to deal with Title changed to blank?
    Line 5 DocPropTitle is [Title]
    Bookmark assigned to Title disappear
    (Line 5) becomes DocPropTitle
    BookMark Name still exist but Go-To-BookMark shows nothing
    IF Statement returns Source Error
    How to get Bookmark refers to blank?
    Excel has IFERROR; can Word handle IFERROR (when Bookmark disappear)?
    NOT critical, but can BookMark a phrase vs sentence? If Not, how to handle LF wrapping ?

    Example using { DOCPROPERTY TITLE } as Criteria, how to deal with Title changed to blank?
    IF Statement NO LONGER shows { DOCPROPERTY TITLE}
    How to get Criteria in IF Statement { DOCPROPERTY TITLE} stay when Title change to blank?

    Ideally, for my case, IF Statement should not deconstruct itself when Criteria becomes blank by User.
    I am still trying to understand how this is useful and different from other programming practice which should protect code independent of user input....

    Thanks for follow up!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:50.
Find Us




Windows 10 Forums