Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Horatio J. Bilge, Jr. Horatio J. Bilge, Jr. is offline
external usenet poster
 
Posts: 24
Default Format text field as number with +/-

I am using Word 2007. I inserted a text form field, using the legacy forms
controls. Under properties for that field, I formatted it as Type: Number,
and Number Format: 0.0

I want the field to display the number with the +/- sign (e.g., if I enter
"1.5" it displays as "+1.5", and if I enter "-1.5" it displays as "-1.5").
Zero should be displayed as "0.0"

I found information about using switches on Graham Mayor's site, but I
couldn't get the switch to work as expected. This is what I tried: { FORMTEXT
\# +0.0 }

Thanks for any help,
~ Horatio

  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Format text field as number with +/-

The simplest method is to add a Word field immediately before the form field
e.g if the form field is Text1
{ IF{ REF Text1 } 0 "+" }
Check the calculate on exit check box of the form field.and set the number
format property to 0.0

If you enter 0 you will see 0.0. If you enter 1 the Word fielf will display
+ in front of 1.0. If you enter -1 the formfield will display -1.0

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Horatio J. Bilge, Jr." wrote in
message ...
I am using Word 2007. I inserted a text form field, using the legacy forms
controls. Under properties for that field, I formatted it as Type: Number,
and Number Format: 0.0

I want the field to display the number with the +/- sign (e.g., if I
enter
"1.5" it displays as "+1.5", and if I enter "-1.5" it displays as "-1.5").
Zero should be displayed as "0.0"

I found information about using switches on Graham Mayor's site, but I
couldn't get the switch to work as expected. This is what I tried: {
FORMTEXT
\# +0.0 }

Thanks for any help,
~ Horatio



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Format text field as number with +/-

The simplest method is to add a Word field immediately before the form field
e.g if the form field is Text1
{ IF{ REF Text1 } 0 "+" }
Check the calculate on exit check box of the form field.and set the number
format property to 0.0

If you enter 0 you will see 0.0. If you enter 1 the Word fielf will display
+ in front of 1.0. If you enter -1 the formfield will display -1.0

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Horatio J. Bilge, Jr." wrote in
message ...
I am using Word 2007. I inserted a text form field, using the legacy forms
controls. Under properties for that field, I formatted it as Type: Number,
and Number Format: 0.0

I want the field to display the number with the +/- sign (e.g., if I
enter
"1.5" it displays as "+1.5", and if I enter "-1.5" it displays as "-1.5").
Zero should be displayed as "0.0"

I found information about using switches on Graham Mayor's site, but I
couldn't get the switch to work as expected. This is what I tried: {
FORMTEXT
\# +0.0 }

Thanks for any help,
~ Horatio



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Horatio J. Bilge, Jr. Horatio J. Bilge, Jr. is offline
external usenet poster
 
Posts: 24
Default Format text field as number with +/-

Thank you for the advice. After playing with it and reading some more, I
added a "result if false" to your suggestion:
{ IF{ REF Text1 } 0 "+" " " }
With that adjustment, if I change the value in Text1, the +/- sign updates
to match.

Thanks for the help!
~ Horatio

"Graham Mayor" wrote:

The simplest method is to add a Word field immediately before the form field
e.g if the form field is Text1
{ IF{ REF Text1 } 0 "+" }
Check the calculate on exit check box of the form field.and set the number
format property to 0.0

If you enter 0 you will see 0.0. If you enter 1 the Word fielf will display
+ in front of 1.0. If you enter -1 the formfield will display -1.0

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Horatio J. Bilge, Jr." wrote in
message ...
I am using Word 2007. I inserted a text form field, using the legacy forms
controls. Under properties for that field, I formatted it as Type: Number,
and Number Format: 0.0

I want the field to display the number with the +/- sign (e.g., if I
enter
"1.5" it displays as "+1.5", and if I enter "-1.5" it displays as "-1.5").
Zero should be displayed as "0.0"

I found information about using switches on Graham Mayor's site, but I
couldn't get the switch to work as expected. This is what I tried: {
FORMTEXT
\# +0.0 }

Thanks for any help,
~ Horatio



.

  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Horatio J. Bilge, Jr. Horatio J. Bilge, Jr. is offline
external usenet poster
 
Posts: 24
Default Format text field as number with +/-

Thank you for the advice. After playing with it and reading some more, I
added a "result if false" to your suggestion:
{ IF{ REF Text1 } 0 "+" " " }
With that adjustment, if I change the value in Text1, the +/- sign updates
to match.

Thanks for the help!
~ Horatio

"Graham Mayor" wrote:

The simplest method is to add a Word field immediately before the form field
e.g if the form field is Text1
{ IF{ REF Text1 } 0 "+" }
Check the calculate on exit check box of the form field.and set the number
format property to 0.0

If you enter 0 you will see 0.0. If you enter 1 the Word fielf will display
+ in front of 1.0. If you enter -1 the formfield will display -1.0

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Horatio J. Bilge, Jr." wrote in
message ...
I am using Word 2007. I inserted a text form field, using the legacy forms
controls. Under properties for that field, I formatted it as Type: Number,
and Number Format: 0.0

I want the field to display the number with the +/- sign (e.g., if I
enter
"1.5" it displays as "+1.5", and if I enter "-1.5" it displays as "-1.5").
Zero should be displayed as "0.0"

I found information about using switches on Graham Mayor's site, but I
couldn't get the switch to work as expected. This is what I tried: {
FORMTEXT
\# +0.0 }

Thanks for any help,
~ Horatio



.



  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Format text field as number with +/-

There should be no need to add a 'result if false' option if the result if
false is nothing. The field will default to nothing if the condition is not
met.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org





"Horatio J. Bilge, Jr." wrote in
message ...
Thank you for the advice. After playing with it and reading some more, I
added a "result if false" to your suggestion:
{ IF{ REF Text1 } 0 "+" " " }
With that adjustment, if I change the value in Text1, the +/- sign updates
to match.

Thanks for the help!
~ Horatio

"Graham Mayor" wrote:

The simplest method is to add a Word field immediately before the form
field
e.g if the form field is Text1
{ IF{ REF Text1 } 0 "+" }
Check the calculate on exit check box of the form field.and set the
number
format property to 0.0

If you enter 0 you will see 0.0. If you enter 1 the Word fielf will
display
+ in front of 1.0. If you enter -1 the formfield will display -1.0

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Horatio J. Bilge, Jr." wrote
in
message ...
I am using Word 2007. I inserted a text form field, using the legacy
forms
controls. Under properties for that field, I formatted it as Type:
Number,
and Number Format: 0.0

I want the field to display the number with the +/- sign (e.g., if I
enter
"1.5" it displays as "+1.5", and if I enter "-1.5" it displays as
"-1.5").
Zero should be displayed as "0.0"

I found information about using switches on Graham Mayor's site, but I
couldn't get the switch to work as expected. This is what I tried: {
FORMTEXT
\# +0.0 }

Thanks for any help,
~ Horatio



.



  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Format text field as number with +/-


There should be no need to add a 'result if false' option if the result if
false is nothing. The field will default to nothing if the condition is not
met.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org





"Horatio J. Bilge, Jr." wrote in
message ...
Thank you for the advice. After playing with it and reading some more, I
added a "result if false" to your suggestion:
{ IF{ REF Text1 } 0 "+" " " }
With that adjustment, if I change the value in Text1, the +/- sign updates
to match.

Thanks for the help!
~ Horatio

"Graham Mayor" wrote:

The simplest method is to add a Word field immediately before the form
field
e.g if the form field is Text1
{ IF{ REF Text1 } 0 "+" }
Check the calculate on exit check box of the form field.and set the
number
format property to 0.0

If you enter 0 you will see 0.0. If you enter 1 the Word fielf will
display
+ in front of 1.0. If you enter -1 the formfield will display -1.0

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



"Horatio J. Bilge, Jr." wrote
in
message ...
I am using Word 2007. I inserted a text form field, using the legacy
forms
controls. Under properties for that field, I formatted it as Type:
Number,
and Number Format: 0.0

I want the field to display the number with the +/- sign (e.g., if I
enter
"1.5" it displays as "+1.5", and if I enter "-1.5" it displays as
"-1.5").
Zero should be displayed as "0.0"

I found information about using switches on Graham Mayor's site, but I
couldn't get the switch to work as expected. This is what I tried: {
FORMTEXT
\# +0.0 }

Thanks for any help,
~ Horatio



.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2007-format a text form field as a phone number Tammy Microsoft Word Help 3 December 15th 09 06:20 PM
form field format for phone number Jan Microsoft Word Help 4 March 9th 07 04:18 AM
Number format field wordspinster Page Layout 1 August 5th 06 12:21 AM
How do i format how a number field displays? Maui Time Jen Mailmerge 2 September 14th 05 04:55 AM
Syntax for Number format in the Text Form Field Options Ed Hall 61 Microsoft Word Help 3 May 8th 05 07:51 PM


All times are GMT +1. The time now is 06:33 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"