PC Review


Reply
Thread Tools Rate Thread

Code for OptionButton displaying new frame

 
 
porky2j@hotmail.com
Guest
Posts: n/a
 
      16th Jul 2008
Hi all!

I have a user form with several frames containing optionbuttons. I
want frame 4 to only be displayed if certain OptionButtons in Frame 1
are selected. If they are not selected I want Frame 4 to remain
hidden.

Is there a way to do this?

Thanks in advance
Paul
 
Reply With Quote
 
 
 
 
Susan
Guest
Posts: n/a
 
      16th Jul 2008
in your userform_initialization code, make frame4.visible=false

then on each of the option buttons that you want it to become visible,
use the click event:

private sub opt1_click()
frame4.visible=true
end sub

if you need to re-use the userform, make sure you call the
initialization code again to reset it & make frame4 invisible once
more.
hope this helps
susan



On Jul 16, 9:05*am, pork...@hotmail.com wrote:
> Hi all!
>
> I have a user form with several frames containing optionbuttons. I
> want frame 4 to only be displayed if certain OptionButtons in Frame 1
> are selected. If they are not selected I want Frame 4 to remain
> hidden.
>
> Is there a way to do this?
>
> Thanks in advance
> Paul


 
Reply With Quote
 
porky2j@hotmail.com
Guest
Posts: n/a
 
      16th Jul 2008
PERFECT!! Thank you soooooo much!

 
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
How to reference optionbutton within frame Langston Microsoft Excel Programming 0 1st Sep 2009 05:42 PM
code to check OptionButton selected within multiple frames porky2j@hotmail.com Microsoft Excel Programming 1 16th Jul 2008 12:59 PM
Use optionbutton value to select code to run. Casey Microsoft Excel Programming 5 10th May 2006 11:00 PM
OptionButton in a Frame not visible =?Utf-8?B?Sm9lQmVu?= Microsoft Excel Programming 2 29th Dec 2004 07:17 PM
Re: Ack need help displaying a folder in a frame! Thomas A. Rowe Microsoft Frontpage 1 9th Jul 2003 06:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:17 AM.