Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
scott
 
Posts: n/a
Default Total checked option buttons in a word table?

Can you add the total of checked option buttons in a word table?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP-
 
Posts: n/a
Default Total checked option buttons in a word table?

Hi ?B?c2NvdHQ=?=,

Can you add the total of checked option buttons in a word table?

You could probably use a macro. But you'd need to tell us what
needs to be totalled. The number of checkboxes checked? Values
associated with a checkbox? Also, which version of Word?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8
2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
scott
 
Posts: n/a
Default Total checked option buttons in a word table?

The version is 2000. I would need to calculate the number of boxes checked.

thanks

"Cindy M -WordMVP-" wrote:

Hi ?B?c2NvdHQ=?=,

Can you add the total of checked option buttons in a word table?

You could probably use a macro. But you'd need to tell us what
needs to be totalled. The number of checkboxes checked? Values
associated with a checkbox? Also, which version of Word?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8
2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)


  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP-
 
Posts: n/a
Default Total checked option buttons in a word table?

Hi ?B?c2NvdHQ=?=,

The following macro will add up the number of checked boxes in the first table
of a document and output the result in a message box

Sub CountCheckboxes()
Dim tbl As Word.Table
Dim ffld As Word.FormField
Dim lCheckedBoxes As Long

Set tbl = ActiveDocument.Tables(1)
lCheckedBoxes = 0
For Each ffld In tbl.Range.FormFields
If ffld.CheckBox.Valid Then
If ffld.CheckBox.Value = True Then
lCheckedBoxes = lCheckedBoxes + 1
End If
End If
Next
MsgBox lCheckedBoxes
End Sub


The version is 2000. I would need to calculate the number of boxes checked.

Can you add the total of checked option buttons in a word table?

You could probably use a macro. But you'd need to tell us what
needs to be totalled. The number of checkboxes checked? Values
associated with a checkbox? Also, which version of Word?



Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

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 97 in Windows XP to maintain formatting Charlie''s Word VBA questions Microsoft Word Help 22 May 20th 23 08:51 PM
Specific text placement Nospam New Users 9 October 11th 05 01:23 AM
How do I create a Word form like corel WP merge documents? dlee_at_mmsgov Microsoft Word Help 2 October 8th 05 06:29 AM
is word perfect compatible with office word? Noreen Microsoft Word Help 1 May 11th 05 11:17 PM
Envelope Address GR New Users 5 April 24th 05 09:48 PM


All times are GMT +1. The time now is 12:46 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"