Discussion on:
View:
Show:
What other uses would this technique be good for? Do you have a real life example to share?
I have used this to compare today's date to an expiry date when generating letters. The expiry date was supplied as a custom property. The nesting allowed me to say "expires TODAY!" instead of "expires ".
I will admit though that I'm not a fan of the technique as nested functions aren't the easiest things to read and can't be documented. I often write small macros to examine fields and/or properties and then set another property value. All this requires is a simple reference to that property in the Word doc. All my contract docs do this to provide "I agree" or "we agree" according to how many parties are involved. The VBA is easy to read and can be properly documented with comments.
I will admit though that I'm not a fan of the technique as nested functions aren't the easiest things to read and can't be documented. I often write small macros to examine fields and/or properties and then set another property value. All this requires is a simple reference to that property in the Word doc. All my contract docs do this to provide "I agree" or "we agree" according to how many parties are involved. The VBA is easy to read and can be properly documented with comments.
Very odd. I had written "date" between greater than and less than signs after "expires" and it disappeared. ' probably assumed it was a tag!
- Keyboard Shortcuts:
- Prev
- Next
- Toggle

































