Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default value of option button

i have create 5 userforms. in each form,there are 5 option buttons in
which user is only allowed to choose one. each option button is
assigned a numeric value of 1,2,3,4,5 respectively. How do i write a
visual basic code which allows me to calculate the value of all the
selected options for the 5 userforms? any help is appreciated:)

Paradise
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default value of option button

Dim c As Control
For Each c In Controls
If TypeName(c) = "OptionButton" Then
Debug.Print c.Name, c.Value
End If
Next c

HTH,
Merjet


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
option button ? Dan Excel Discussion (Misc queries) 6 December 27th 07 08:42 PM
Option Button Help PLEASE!! KB Excel Worksheet Functions 1 April 26th 06 06:21 AM
keep source formatting is not an option in paste option button Tina Excel Discussion (Misc queries) 0 February 20th 06 09:58 PM
Option Button Fable Excel Discussion (Misc queries) 1 August 16th 05 01:59 AM
option button Mario Excel Discussion (Misc queries) 1 July 26th 05 07:44 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"