Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tjb
 
Posts: n/a
Default conditional option button help

http://support.microsoft.com/newsgro...-us&sloc=en-us

I posted this (link to old post above) a couple months ago but I never
posted back that it still didn't work. I'll try to recap what I need.

When a user clicks a command button several lines of code will execute. One
of the items I want to happen is if a particular cell contains data and one
of three related option buttons isn't selected, then a message box should
appear saying that one of the three option buttons isn't selected. I know
this is possible but my meager knowledge of VBA is limiting me at this point.
Thanks!
  #2   Report Post  
Basil
 
Posts: n/a
Default

How about referencing the cell that the option buttons are linked to.

Or have a seperate cell somewhere with a formula that looks at cell A1 and
the cells linked to the option buttons - the formula could return 1 or 0
depending on whether you want to show the msgbox or not.
From the VBA look at this cell value with the If statement to action the
messagebox.

If you can't get it, reply back with more info about the option buttons
(which type are they - form or control toolbar? - links? etc)

Baz

"tjb" wrote:

http://support.microsoft.com/newsgro...-us&sloc=en-us

I posted this (link to old post above) a couple months ago but I never
posted back that it still didn't work. I'll try to recap what I need.

When a user clicks a command button several lines of code will execute. One
of the items I want to happen is if a particular cell contains data and one
of three related option buttons isn't selected, then a message box should
appear saying that one of the three option buttons isn't selected. I know
this is possible but my meager knowledge of VBA is limiting me at this point.
Thanks!

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
How to edit the size and make it bold of the Option Button text? Cammie Excel Discussion (Misc queries) 1 February 23rd 05 01:57 AM
Option Button on Forms Toolbar admannj Excel Discussion (Misc queries) 4 January 25th 05 01:07 AM
How to protect Option button in worksheet Julie Excel Worksheet Functions 2 January 4th 05 01:01 AM
conditional error for option button tjb Excel Worksheet Functions 3 December 29th 04 11:26 PM
The Auto Filter button lost the column specified option. D Excel Worksheet Functions 1 November 4th 04 11:47 PM


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