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

I have a spread sheet that I want to place an "option button" in a cell, so
that when that "option button" is clicked it will give me a number in another
cell. Can anyone give me an easy version of how to do this? Thank you in
advance for your assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default option button problem

Hi there

I'm not really sure what you are asking to do but if you put the code
below into the module for your worksheet it might give you a better
idea of the code.

Private Sub OptionButton1_Click()

If OptionButton1 = True Then

MsgBox [A25].Value

End If

End Sub

Private Sub OptionButton2_Click()

If OptionButton2 = True Then

MsgBox [A26].Value

End If

End Sub

Private Sub OptionButton3_Click()

If OptionButton3 = True Then

MsgBox [A27].Value

End If

End Sub

hope this helps

Steve

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/Focus Problem on Worksheet Resume Next Excel Programming 4 September 20th 05 01:10 AM
Problem with Option button control in multiple sheets [email protected] Excel Programming 3 June 17th 05 01:55 PM
Option Button problem Paul Excel Programming 2 April 18th 05 05:43 PM
Option button problem Roy Miller[_2_] Excel Programming 0 July 31st 04 01:04 AM
Option button problem Paul Excel Programming 1 July 23rd 04 02:07 PM


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