Link to home
Start Free TrialLog in
Avatar of kelly1
kelly1

asked on

Using Option buttons

every time i use a option button in a calculation program i get -1 in the answer box
Avatar of Sekans
Sekans
Flag of United States of America image

What is the code you're using?  -1 is the same as True (or more accurately Not False)  Please ellaborate on your question.

Regards,
Sekans
ASKER CERTIFIED SOLUTION
Avatar of anthonyc
anthonyc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dkaratzios
dkaratzios

Hi kelly1,

Have you tried putting your calculations in variables ? This way, you only use your option buttons to indicate which variable to want in your calculations?

ex:
dim opt_var as long
opt_var = any number for calculation

if optionbutton is true then
opt_var * whatever
end if