PC Review


Reply
Thread Tools Rate Thread

Command Button Dependent on Cell/Range Value

 
 
BJ
Guest
Posts: n/a
 
      3rd Jun 2008
Hello

I'm trying to make invisible a command button based on the result of a cell
- in this case it is also a range.

I've taken a few runs at it but I'm not having any success getting it to
work. No error messages, but nothing happens either.

Basically have CommandButton1 and CommandButton2. If the value of Range
"Answer" is 'Item A' then I'd like CommandButton1 to appear visible and
function while CommandButton2 is invisible and/or not functional. If the
value of Range "Answer" is 'Item B' then I'd like CommandButton2 to appear
visible and function while CommandButton1 is invisible and/or not functional.

Thanks.

BJ
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      3rd Jun 2008
It would help if you identified the source of your command buttons (i.e.
Forms toolbar or Control Toolbox) and if you would post the code you are
attempting that does not work.

"BJ" wrote:

> Hello
>
> I'm trying to make invisible a command button based on the result of a cell
> - in this case it is also a range.
>
> I've taken a few runs at it but I'm not having any success getting it to
> work. No error messages, but nothing happens either.
>
> Basically have CommandButton1 and CommandButton2. If the value of Range
> "Answer" is 'Item A' then I'd like CommandButton1 to appear visible and
> function while CommandButton2 is invisible and/or not functional. If the
> value of Range "Answer" is 'Item B' then I'd like CommandButton2 to appear
> visible and function while CommandButton1 is invisible and/or not functional.
>
> Thanks.
>
> BJ

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
command button controlling a range of dates RedBeard Microsoft Excel Programming 0 9th Dec 2009 09:42 AM
Print from Command Button Range =?Utf-8?B?R2FyeXc=?= Microsoft Excel Misc 8 3rd May 2007 09:17 PM
Print range & Command Button =?Utf-8?B?VGltTg==?= Microsoft Excel Programming 3 16th Nov 2006 10:30 PM
Multi select dependent on cell in range =?Utf-8?B?Sm9obg==?= Microsoft Excel Programming 0 30th Aug 2006 04:46 PM
Border style to top of 2 cells. Not dependent on cell contents, just a button for user to push to apply ... StargateFanFromWork Microsoft Excel Programming 2 4th Jul 2006 06:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:46 PM.