From: George Lee on 20 Apr 2010 16:35 How do you write VBA to create a complex field code, something like having fields within fields. For example: { IF { CREATEDATE \@ “yyyy”} = { DATE \@ “yyyy”} "Created this year by { WhichMegaCorporation}.” "Created some other time.” }
From: Jay Freedman on 20 Apr 2010 16:53 See http://www.word.mvps.org/FAQs/MacrosVBA/NestedFieldsWithVBA.htm. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. George Lee wrote: > How do you write VBA to create a complex field code, something like > having fields within fields. For example: > > { > IF { CREATEDATE \@ "yyyy"} = { DATE \@ "yyyy"} > "Created this year by { WhichMegaCorporation}." > "Created some other time." > }
|
Pages: 1 Prev: Copy from excel to Word Next: Duplication Macro & Macro crashing Word |