I am trying to create a very simple form in Word 2010 (RTM, on Win7) which
has three fields: Qty, Unit Price, Ext. Price. Am using the legacy Text Form
field for each. The details on how I set up properties is below.
I restrict editing and then save it (as a DOTX, DOCX or even DOC-tried all),
and then open it to type values in my fields. Here's the problem: the fields
do not format the data as instructed. For example, I type in a unit price of
$1.50 and it saves the value of "1". That's it, just the number 1, and does
not format it as instructed (as currency). It displays the qty correctly,
but it strips out the currency formatting for Ext. Price as well. All
calculations are working (based on the values it saves in the form field, not
the values I've typed in), but the formatting is in error, and that makes the
calculation results wrong.
When I go back and view properties for each field, the number format is
blank - as if I never selected/changed it. If I select again, restrict,
save, and try again, still no formatting.
What might be causing this? I've tried in an old document and a brand new
one and the same thing happens. Information from this point forward is
supplemental about how I set properties for each field.
After I insert each field, I open the Properties and make appropriate changes:
Qty field: Number type, unlimited length, number format #,##0, calculate on
exit checked.
Unit Price field: Number type, unlimited length, number format
$#,##0.00;($#,##0.00), calculate on exit checked.
Ext price field: Calculation, unlimited length, number format
$#,##0.00;($#,##0.00), calculate on exit NOT checked.
Editing restrictions are set to allow only Filling in forms.
Thanks for any insights you might have.
|
|
0
|
|
|
|
Reply
|
Utf
|
6/6/2010 6:21:44 AM |
|
That is an issue that I came across last week. A way around the problem is
to run the following macro on exit from any formfield to which you want to
apply the formatting:
Sub formatfldresult()
Dim ffname As String
ffname = Selection.Bookmarks(Selection.Bookmarks.Count).Name
With ActiveDocument.FormFields(ffname)
.Result = Format(.Result, "$#,###.00")
End With
End Sub
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
"Michelle H." <Michelle H.@discussions.microsoft.com> wrote in message
news:56CC6CD0-1992-446C-9660-1BF57AA1725D@microsoft.com...
> I am trying to create a very simple form in Word 2010 (RTM, on Win7) which
> has three fields: Qty, Unit Price, Ext. Price. Am using the legacy Text
> Form
> field for each. The details on how I set up properties is below.
> I restrict editing and then save it (as a DOTX, DOCX or even DOC-tried
> all),
> and then open it to type values in my fields. Here's the problem: the
> fields
> do not format the data as instructed. For example, I type in a unit price
> of
> $1.50 and it saves the value of "1". That's it, just the number 1, and
> does
> not format it as instructed (as currency). It displays the qty correctly,
> but it strips out the currency formatting for Ext. Price as well. All
> calculations are working (based on the values it saves in the form field,
> not
> the values I've typed in), but the formatting is in error, and that makes
> the
> calculation results wrong.
>
> When I go back and view properties for each field, the number format is
> blank - as if I never selected/changed it. If I select again, restrict,
> save, and try again, still no formatting.
> What might be causing this? I've tried in an old document and a brand new
> one and the same thing happens. Information from this point forward is
> supplemental about how I set properties for each field.
>
> After I insert each field, I open the Properties and make appropriate
> changes:
> Qty field: Number type, unlimited length, number format #,##0, calculate
> on
> exit checked.
> Unit Price field: Number type, unlimited length, number format
> $#,##0.00;($#,##0.00), calculate on exit checked.
> Ext price field: Calculation, unlimited length, number format
> $#,##0.00;($#,##0.00), calculate on exit NOT checked.
> Editing restrictions are set to allow only Filling in forms.
>
> Thanks for any insights you might have.
>
>
|
|
0
|
|
|
|
Reply
|
Doug
|
6/6/2010 7:22:41 AM
|
|
|
1 Replies
1346 Views
(page loaded in 0.011 seconds)
Similiar Articles: Text form field loses formatting in Word 2010 - microsoft.public ...Text form field loses formatting in Word 2010 I am trying to create a very simple form in Word 2010 (RTM, on Win7) which has three fields: Qty, Unit Price, Ext. Price. 2003 Form fields losing formatting in 2007 - microsoft.public.word ...Text form field loses formatting in Word 2010 - microsoft.public ... 2003 Form fields losing formatting in 2007 - microsoft.public.word ... Text form field loses ... Word text copied into email loses formatting alignment - microsoft ...Text form field loses formatting in Word 2010 Re: Word text copied into email loses formatting alignment: Doug Robbins - Word MVP: Word Documents: 0: 11-26-2009 01:47 AM ... Change Form Field Font - microsoft.public.word.docmanagement ...Text form field loses formatting in Word 2010 - microsoft.public ... Text form field loses formatting in Word 2010 - microsoft.public ... How do I change the size of a ... Word 2007-format a text form field as a phone number - microsoft ...Text form field loses formatting in Word 2010 - microsoft.public ... Word 2007-format a text form field as a phone number - microsoft ... Text form field loses formatting ... Format of tick/checl box Word 2003 form field - microsoft.public ...... public.word ..... form field as a phone number - microsoft ..... you are able to format a form field in Word 2007 ... Text form field loses formatting in Word 2010 ... Calculating age in a Word template/Form from the DOB field ...Text form field loses formatting in Word 2010 - microsoft.public ... Calculating age in a Word template/Form from the DOB field ... Reply: Utf: 1/12/2010 7:02:01 PM ... Text Form Fields - microsoft.public.word.vba.generalText form field loses formatting in Word 2010 - microsoft.public ... I am trying to create a very simple form in Word 2010 (RTM, on Win7) which has three fields: Qty, Unit ... How do I change the size of a text form field box in Word ...... form field ... formatting in Active X Control boxes - microsoft.public.word ... I've created a form using Developer Contols Active X Controls, specifically a text box field. ... Date form field in Word - microsoft.public.word.docmanagement ...Text form field loses formatting in Word 2010 - microsoft.public ... I am trying to create a very simple form in Word 2010 (RTM, on Win7) which has three fields: Qty, Unit ... Text form field loses formatting in Word 2010 - Microsoft AnswersAfter formatting a Legacy text form field in Word 2010 with a currency format, protecting and saving, upon opening the document it has lost the formatting. Text form field loses formatting in Word 2010 - Microsoft Office ...Microsoft Word Help ... I am trying to create a very simple form in Word 2010 (RTM, on Win7) which has three ... That is an issue that I came across last week. A way ... Text form field loses formatting in Word 2010 - Lockergnome ForumsI am trying to create a very simple form in Word 2010 (RTM, on Win7) which has three fields: Qty, Unit Price, Ext. Price. Am using the legacy Text Form field for each. [SOLVED] Text form field loses formatting in Word 2010I am trying to create a very simple form in Word 2010 (RTM, on Win7) which has three fields: Qty, Unit Price, Ext. Price. Am using the legacy Text Text form field loses formatting in Word 2010 - MS Word HelpI am trying to create a very simple form in Word 2010 (RTM, on Win7) which has three fields: Qty, Unit Price, Ext. Price. Am using the legacy Text 7/20/2012 3:30:53 PM
|