A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Hidding Blank Calculations in Word 2007



 
 
Thread Tools Display Modes
  #1  
Old November 5th, 2009, 02:47 PM posted to microsoft.public.word.docmanagement,microsoft.public.word.tables
Ben[_10_]
external usenet poster
 
Posts: 7
Default Hidding Blank Calculations in Word 2007

Hi,

I have a word 2007 template that I will be using to produce quotes.

In part of the form there are 4 lines for each tem that might be
quoted on, each line has 4 text form fields, each text form fields in
each line ends 1, 2 ,3, 4 i.e. quantity1, description1, unit_price1,
total_price1, then quantity2, description2, unit_price2, total_price2
etc.

If the text form fields are blank, I don't want them to show up when
printed out, which is what happens if there is no default text in the
form field, such as the description fields, but when you enter a
calculation, such as in total_price which would be "= quantity *
unit_price", it shows as £0.00 even if quantity & unit_price are
blank.

Is it possible to hid a calculation when its blank, rather than have
it display a null vlaue?

Thanks

Ben
  #2  
Old November 5th, 2009, 11:43 PM posted to microsoft.public.word.docmanagement,microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Hidding Blank Calculations in Word 2007

Use the following type of field construction

{ IF { FORMTEXT { =Text1 * Text2 } \# £,0.00 } = "£0.00" "" { FORMTEXT {
=Text1 * Text2 } \# £,0.00 } }

You must use Ctrl+F9 to insert each pair of field delimiters { } and use
Alt+F9 to toggle off their display

--
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.
"Ben" wrote in message
...
Hi,

I have a word 2007 template that I will be using to produce quotes.

In part of the form there are 4 lines for each tem that might be
quoted on, each line has 4 text form fields, each text form fields in
each line ends 1, 2 ,3, 4 i.e. quantity1, description1, unit_price1,
total_price1, then quantity2, description2, unit_price2, total_price2
etc.

If the text form fields are blank, I don't want them to show up when
printed out, which is what happens if there is no default text in the
form field, such as the description fields, but when you enter a
calculation, such as in total_price which would be "= quantity *
unit_price", it shows as £0.00 even if quantity & unit_price are
blank.

Is it possible to hid a calculation when its blank, rather than have
it display a null vlaue?

Thanks

Ben

  #3  
Old November 7th, 2009, 02:31 AM posted to microsoft.public.word.docmanagement,microsoft.public.word.tables
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default Hiding Blank Calculations in Word 2007

Hi Doug,

There you go making it dificult again ...
{=Text1*Text2 \# \# "£,0.00;-£,0.00;"}

--
Cheers
macropod
[Microsoft MVP - Word]


"Doug Robbins - Word MVP" wrote in message ...
Use the following type of field construction

{ IF { FORMTEXT { =Text1 * Text2 } \# £,0.00 } = "£0.00" "" { FORMTEXT { =Text1 * Text2 } \# £,0.00 } }

You must use Ctrl+F9 to insert each pair of field delimiters { } and use Alt+F9 to toggle off their display

--
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.
"Ben" wrote in message ...
Hi,

I have a word 2007 template that I will be using to produce quotes.

In part of the form there are 4 lines for each tem that might be
quoted on, each line has 4 text form fields, each text form fields in
each line ends 1, 2 ,3, 4 i.e. quantity1, description1, unit_price1,
total_price1, then quantity2, description2, unit_price2, total_price2
etc.

If the text form fields are blank, I don't want them to show up when
printed out, which is what happens if there is no default text in the
form field, such as the description fields, but when you enter a
calculation, such as in total_price which would be "= quantity *
unit_price", it shows as £0.00 even if quantity & unit_price are
blank.

Is it possible to hid a calculation when its blank, rather than have
it display a null vlaue?

Thanks

Ben


  #4  
Old November 7th, 2009, 07:02 AM posted to microsoft.public.word.docmanagement,microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Hiding Blank Calculations in Word 2007

macropod wrote:
Hi Doug,

There you go making it dificult again ...
{=Text1*Text2 \# \# "£,0.00;-£,0.00;"}

Only because on the machine on which I was trying it, I was getting a
Syntax error message. But now when I use your construction (minus the
second \#, which causes a Too many picture switches error message) it works.

I have no idea why what I had tried earlier did not work, but will try
it again when I get to that machine.

--
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.
  #5  
Old November 8th, 2009, 03:40 AM posted to microsoft.public.word.docmanagement,microsoft.public.word.tables
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default Hiding Blank Calculations in Word 2007

Hi Doug,

Yes, that should have been:
{=Text1*Text2 \# "£,0.00;-£,0.00;"}
My bad.

--
Cheers
macropod
[Microsoft MVP - Word]


"Doug Robbins - Word MVP" wrote in message ...
macropod wrote:
Hi Doug,

There you go making it dificult again ...
{=Text1*Text2 \# \# "£,0.00;-£,0.00;"}

Only because on the machine on which I was trying it, I was getting a Syntax error message. But now when I use your construction
(minus the second \#, which causes a Too many picture switches error message) it works.

I have no idea why what I had tried earlier did not work, but will try it again when I get to that machine.

--
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.


  #6  
Old November 9th, 2009, 02:57 AM posted to microsoft.public.word.docmanagement,microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Hiding Blank Calculations in Word 2007

And of course, I cannot replicate the error that I was getting the other
day.

--
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.
"macropod" wrote in message
...
Hi Doug,

Yes, that should have been:
{=Text1*Text2 \# "£,0.00;-£,0.00;"}
My bad.

--
Cheers
macropod
[Microsoft MVP - Word]


"Doug Robbins - Word MVP" wrote in message
...
macropod wrote:
Hi Doug,

There you go making it dificult again ...
{=Text1*Text2 \# \# "£,0.00;-£,0.00;"}

Only because on the machine on which I was trying it, I was getting a
Syntax error message. But now when I use your construction (minus the
second \#, which causes a Too many picture switches error message) it
works.

I have no idea why what I had tried earlier did not work, but will try it
again when I get to that machine.

--
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.



  #7  
Old November 9th, 2009, 05:21 AM posted to microsoft.public.word.docmanagement,microsoft.public.word.tables
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default Hiding Blank Calculations in Word 2007

Hi Doug,

Perhaps you'd forgotten to enclose the switch expression with double quotes, which you can often get away with for just the standard
single-format expression.

--
Cheers
macropod
[Microsoft MVP - Word]


"Doug Robbins - Word MVP" wrote in message ...
And of course, I cannot replicate the error that I was getting the other day.

--
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.
"macropod" wrote in message ...
Hi Doug,

Yes, that should have been:
{=Text1*Text2 \# "£,0.00;-£,0.00;"}
My bad.

--
Cheers
macropod
[Microsoft MVP - Word]


"Doug Robbins - Word MVP" wrote in message ...
macropod wrote:
Hi Doug,

There you go making it dificult again ...
{=Text1*Text2 \# \# "£,0.00;-£,0.00;"}

Only because on the machine on which I was trying it, I was getting a Syntax error message. But now when I use your
construction (minus the second \#, which causes a Too many picture switches error message) it works.

I have no idea why what I had tried earlier did not work, but will try it again when I get to that machine.

--
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.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.