Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Code for OptionButton displaying new frame

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default Code for OptionButton displaying new frame

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, 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Code for OptionButton displaying new frame

PERFECT!! Thank you soooooo much!

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
code to check OptionButton selected within multiple frames [email protected] Excel Programming 1 July 16th 08 12:59 PM
Passing frame object in code Marc[_25_] Excel Programming 0 January 16th 08 12:20 AM
Use optionbutton value to select code to run. Casey[_91_] Excel Programming 5 May 10th 06 11:00 PM
Adding frame on multipage through code... Ajit Excel Programming 1 January 5th 05 06:57 PM
OptionButton in a Frame not visible JoeBen Excel Programming 2 December 29th 04 07:17 PM


All times are GMT +1. The time now is 08:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"