Re: Creating a visible field with a hidden component?



The easiest way to insert nested fields is to create them manually rather
than through code and then save them as AutoText. To insert the field using
code, you then insert the AutoText entry.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


"ML" <schooner@xxxxxxxxxxxxx> wrote in message
news:ueC2CmNLGHA.3396@xxxxxxxxxxxxxxxxxxxxxxx
I need to create a field that will be inserted via VBA code. This will be
made up of nested fields. The outer field will use a Quote field with a
visible text element that will show in the document. Along with this is a
nested field which contains tags that I will parse for with another macro.
The issue is I need to make the second nested field not visible and also
easily parsable in code. I'm thinking of storing a delimited string in
this field to contain the various elements need later.

The only way I can think to do this is using the SEQ field with the \h.
Is this the only/best approach?

Here is what I want or similar:

{ QUOTE (CAUKEO) { SEQ AA-BB-CCCC \h } }

So later on I want to parse out the SEQ field associated with the QUOTE
and based on what it contains (i.e. does it include AA then..) do
something in the macro.

Any thoughts or insight on this approach?



.



Relevant Pages

  • Re: create macrobutton with addin from VBA?
    ... > since my macro runs in the background while the user is typing inside ... Besides using nested fields like Addin ... AutoText entry with a Macrobutton field that has a Private field nested ...
    (microsoft.public.word.vba.general)
  • Re: create macrobutton with addin from VBA?
    ... > since my macro runs in the background while the user is typing inside ... Besides using nested fields like Addin ... AutoText entry with a Macrobutton field that has a Private field nested ...
    (microsoft.public.word.vba.beginners)
  • Re: forcing a page break in a mail merge directory
    ... An alternate method to the macro that Doug proposes would be to use a ... set of nested fields. ...
    (microsoft.public.word.mailmerge.fields)

Loading