WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Summing numeric textfields

 
   Home -> Office -> User Forms RSS
Next:  Formula and Bookmark  
Author Message
TeeKAus

External


Since: Jul 28, 2008
Posts: 1



(Msg. 1) Posted: Mon Jul 28, 2008 1:23 am
Post subject: Summing numeric textfields
Archived from groups: microsoft>public>word>vba>userforms (more info?)

I have six numeric textfields on a protected form. Numbers are entered into
these five fields in sequence and not all of the textfields will have a
content.
I have tried to write a macro that will provide the sum of the first five
textfields in the sixth field without success.
Please is there someone who can resolve this problem for me?
Back to top
Login to vote
Doug Robbins - Word MVP

External


Since: Jul 14, 2006
Posts: 4210



(Msg. 2) Posted: Mon Jul 28, 2008 7:17 pm
Post subject: Re: Summing numeric textfields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You do not need a macro to do that. Assuming that the formfields have the
bookmarks names of Text1, Text2, Text3, Text4, Text5 and Text6, in the
properties dialog for Text1, Text2, Text3, Text4 and Text5 check the box for
Calculate on Exit and in the dialog for Text 6, change the type to
Calculation and enter the following formula in the Expression control

= Text1 + Text2 + Text3 + Text4 + Text5

Protect the document for forms and you're on your way.

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

"TeeKAus" <TeeKAus.DeleteThis@discussions.microsoft.com> wrote in message
news:DDC59B67-20D1-47B1-91AF-2582E03B79FA@microsoft.com...
>I have six numeric textfields on a protected form. Numbers are entered into
> these five fields in sequence and not all of the textfields will have a
> content.
> I have tried to write a macro that will provide the sum of the first five
> textfields in the sixth field without success.
> Please is there someone who can resolve this problem for me?
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> User Forms All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET