Solved

One-Time Only "Ask" Field

Posted on 2007-11-14
4
438 Views
Last Modified: 2008-02-01
I have a template with an ask field such that when a user creates a document based on the template and ask field pops up with a question.  The question is pre-filled with the most common answer to the question. There are two things I'd like to improve, but am not sure how to.

First, once the document is saved, each time it is reopened, the ask field pops up again.  I'd like it so that the only time they get the question asked is upon creating a brand new document based on the template.  

Secondly, the ask field really has two valid answers.  One of the answers, which is the one I have defaulted, is much more common than the other.  Yet, it would be nice to instead have some kind of picker with the 2 options, rather than making the person type the second one by hand if the default isn't correct.  

Help with either or both would be much appreciated.

Phil
0
Comment
Question by:witzph1
  • 2
4 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 20290942
I thought I see how to do that if you do not have a default choice, by nesting  the Ask field in an IF field that tests the bookmark for blank. However that acts weirdly. It does ask the question once only, but it moves the bookmark into the fields and forgets about the text that the user has just typed in.

The only getround that I can think of it to use a VBA macro firing off the Document_New event
0
 
LVL 21

Expert Comment

by:EricFletcher
ID: 20292203
I concur with Graham about having Word run a macro when the template creates a new document. You would probably have more latitude in dealing with the question if you used VBA code than having everything in an ASK field. I'm always leery of using content that a user can type over -- intentionally or otherwise.
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 20292683
This question shows how to do that sort of thing in VBA code:

http://www.experts-exchange.com/Programming/Misc/Q_22594246.html
0
 

Author Comment

by:witzph1
ID: 20424088
Thanks again, GrahamSkan.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Word 2010 mail merge 3 81
Select tabs in Word with Powershell 8 55
Way to set up standard picture size for pasting in MS Word 3 23
word 2016 spell check 3 4
Introduction This tutorial provides instructions on how to properly format your Word document using the inbuilt tools provided. The benefits of using these tools means your documents are more accessible and easily portable to other applications an…
This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question