Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
I have created an ASK field in a document which prompts for a receipt number,
which has the year in 2 digit format followed by a dash, and then I manually enter the remaining digits of the receipt number. eg: 09-124 It appears like this: {ASK ReceiptNo "Enter the receipt number" \d {DATE \@ "yy'-'"}} When the prompt appears, the default value is highlighted. Is it possible to change the default coding so that the default value isn't highlighted, and the cursor is situated after the dash? TIA David |
#2
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi Compass Rose,
No. -- Cheers macropod [Microsoft MVP - Word] "Compass Rose" wrote in message ... I have created an ASK field in a document which prompts for a receipt number, which has the year in 2 digit format followed by a dash, and then I manually enter the remaining digits of the receipt number. eg: 09-124 It appears like this: {ASK ReceiptNo "Enter the receipt number" \d {DATE \@ "yy'-'"}} When the prompt appears, the default value is highlighted. Is it possible to change the default coding so that the default value isn't highlighted, and the cursor is situated after the dash? TIA David |
#3
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
That was an honest and abrupt answer. However, on contemplating further, can
the receipt number be incremented automatically through the use of a DOCVARIABLE, and incorporated into the ASK field coding? If so, a little detail would be helpful. I use an autonew macro when I open the template that generates the document. David "macropod" wrote: Hi Compass Rose, No. -- Cheers macropod [Microsoft MVP - Word] "Compass Rose" wrote in message ... I have created an ASK field in a document which prompts for a receipt number, which has the year in 2 digit format followed by a dash, and then I manually enter the remaining digits of the receipt number. eg: 09-124 It appears like this: {ASK ReceiptNo "Enter the receipt number" \d {DATE \@ "yy'-'"}} When the prompt appears, the default value is highlighted. Is it possible to change the default coding so that the default value isn't highlighted, and the cursor is situated after the dash? TIA David . |
#4
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Another thought. Is there an ASCII code that corresponds to CURSOR RIGHT?
I've been looking up ASCII codes online, with no luck so far. I was thinking: {ASK ReceiptNo "Enter the receipt number" \d {QUOTE {DATE \@ "yy'-'"} X }} where X is the CURSOR RIGHT ASCII character. Just a thought.... David "macropod" wrote: Hi Compass Rose, No. -- Cheers macropod [Microsoft MVP - Word] "Compass Rose" wrote in message ... I have created an ASK field in a document which prompts for a receipt number, which has the year in 2 digit format followed by a dash, and then I manually enter the remaining digits of the receipt number. eg: 09-124 It appears like this: {ASK ReceiptNo "Enter the receipt number" \d {DATE \@ "yy'-'"}} When the prompt appears, the default value is highlighted. Is it possible to change the default coding so that the default value isn't highlighted, and the cursor is situated after the dash? TIA David . |
#5
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
See the article "Creating sequentially numbered documents (such as
invoices)" at: http://word.mvps.org/faqs/MacrosVBA/index.htm -- Hope this helps, Doug Robbins - Word MVP Please reply only to the newsgroups unless you wish to obtain my services on a paid professional basis. "Compass Rose" wrote in message ... That was an honest and abrupt answer. However, on contemplating further, can the receipt number be incremented automatically through the use of a DOCVARIABLE, and incorporated into the ASK field coding? If so, a little detail would be helpful. I use an autonew macro when I open the template that generates the document. David "macropod" wrote: Hi Compass Rose, No. -- Cheers macropod [Microsoft MVP - Word] "Compass Rose" wrote in message ... I have created an ASK field in a document which prompts for a receipt number, which has the year in 2 digit format followed by a dash, and then I manually enter the remaining digits of the receipt number. eg: 09-124 It appears like this: {ASK ReceiptNo "Enter the receipt number" \d {DATE \@ "yy'-'"}} When the prompt appears, the default value is highlighted. Is it possible to change the default coding so that the default value isn't highlighted, and the cursor is situated after the dash? TIA David . |
#6
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi Compass Rose,
No. However, since you apparently want both the year and a number is a bookmark, you could put a DATE field in the document, coded as: {DATE \@ "yy'-'"} followed by a FILLIN field coded as: {FILLIN "Please input the Receipt #"} then bookmark both the DATE field and the FILLIN field with the ReceiptNo bookmark for subsequent cross-reference purposes. Alternatively, you could use a SET field, coded as: {SET ReceiptNo "{DATE \@ "yy'-'"}{FILLIN "Please input the Receipt #"}"} for a result comparable to that which you're after with the ASK field. -- Cheers macropod [Microsoft MVP - Word] "Compass Rose" wrote in message ... Another thought. Is there an ASCII code that corresponds to CURSOR RIGHT? I've been looking up ASCII codes online, with no luck so far. I was thinking: {ASK ReceiptNo "Enter the receipt number" \d {QUOTE {DATE \@ "yy'-'"} X }} where X is the CURSOR RIGHT ASCII character. Just a thought.... David "macropod" wrote: Hi Compass Rose, No. -- Cheers macropod [Microsoft MVP - Word] "Compass Rose" wrote in message ... I have created an ASK field in a document which prompts for a receipt number, which has the year in 2 digit format followed by a dash, and then I manually enter the remaining digits of the receipt number. eg: 09-124 It appears like this: {ASK ReceiptNo "Enter the receipt number" \d {DATE \@ "yy'-'"}} When the prompt appears, the default value is highlighted. Is it possible to change the default coding so that the default value isn't highlighted, and the cursor is situated after the dash? TIA David . |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Default Text for Form Field | Microsoft Word Help | |||
Can you set default field properties? | Microsoft Word Help | |||
Remove default text in form field | Page Layout | |||
How do I set default on Toggle Field Codes? | Microsoft Word Help | |||
Default formatting of INCLUDEPICTURE field | Formatting Long Documents |