Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2011, 01:50 PM
gotmatt gotmatt is offline Autotext within Fields Windows XP Autotext within Fields Office 2003
Novice
Autotext within Fields
 
Join Date: Jun 2011
Posts: 2
gotmatt is on a distinguished road
Default Autotext within Fields


Hey all!

I produce my Word documents with a program called Author-it. It compiles many small topics into a large Word file. I need to figure out how to write a field that will recognize what Chapter it is in, and then insert an autotext/graphic in a specific location.

My chapters have designated letters. A page in chapter 1 might look like "A.4." Is there a way to have a field (maybe "IF") recognize a letter in the header (page number) and then apply a corresponding autotext? That autotext would place the graphic in the proper location.

The goal is to have different color bars appear in the headings of specific chapters. If the chapter is an "A" chapter, the bar would be red, and so on.

I'm new to the use of fields, but I think this is the right place to start. I'd greatly appreciate any wisdom you can offer!

-Matthew
Reply With Quote
  #2  
Old 06-29-2011, 02:31 PM
gotmatt gotmatt is offline Autotext within Fields Windows XP Autotext within Fields Office 2003
Novice
Autotext within Fields
 
Join Date: Jun 2011
Posts: 2
gotmatt is on a distinguished road
Default

I tried some "trial and error" work, and I may be onto something.

When working with "IF" fields, I tried typing "{IF {SECTION}=10 "This Works" "This does not work"}" This field was in section 10, so it typed out "This Works." I was so happy with that result!

Now, I just need to figure out how to substitute that "True" text with an Auto Text function. Since I could use the "{SECTION}" field in the operator, I would imagine this is possible, but I can't find the right method of entering it!
Reply With Quote
  #3  
Old 06-29-2011, 06:05 PM
macropod's Avatar
macropod macropod is offline Autotext within Fields Windows 7 64bit Autotext within Fields Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi gottmat,

You could use a field coded along the lines of:
{IF{SECTION}= 10 {AUTOTEXT "MyAutotext"}}
or perhaps even:
{AUTOTEXT "SectionAutotext{SECTION}"}

Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste them from this message.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Autotext within Fields Copying autotext jafrapatty Office 3 01-30-2011 01:11 AM
AutoText Updates Ludovico Word 0 07-11-2010 06:10 AM
Autotext screen tip doesn't appear Steve_D Word 0 05-11-2010 07:14 PM
AutoText question harbor11 Word 0 12-16-2009 09:42 AM
Autotext within Fields autotext question 3billy3 Word 1 10-24-2009 06:02 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft