PC Review


Reply
Thread Tools Rate Thread

How do I hide an Option Button?

 
 
Jeff Wright
Guest
Posts: n/a
 
      22nd Sep 2004
Greetings !

Without going into unnecessary details as to why, I have written a macro
which, among other tasks, hides 10 rows. Within these rows is an Option
Button (created with the Control Toolbox under View Toolbars) which I also
wish to hide. The rows hide without any problems, but the Option Button is
still visible. Is there a way to hide an Option Button while hiding rows? I
know that I can go into the Properties menu of the Option Button to hide it,
but that won't work in my macro (at least, not the way I tried!). Any help
is appreciated.

Thanks!

Jeff W.


 
Reply With Quote
 
 
 
 
Nick Hodge
Guest
Posts: n/a
 
      22nd Sep 2004
Jeff

If you can set a property manually, you should be able to set it
programmatically. I hid the button1 on sheet1 using this

Sub hideButtonSheet1()
Worksheets("Sheet1").OptionButton1.Visible = False
End Sub


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(E-Mail Removed)HIS


"Jeff Wright" <(E-Mail Removed)> wrote in message
news:fq64d.341707$sh.92019@fed1read06...
> Greetings !
>
> Without going into unnecessary details as to why, I have written a macro
> which, among other tasks, hides 10 rows. Within these rows is an Option
> Button (created with the Control Toolbox under View Toolbars) which I also
> wish to hide. The rows hide without any problems, but the Option Button is
> still visible. Is there a way to hide an Option Button while hiding rows?
> I know that I can go into the Properties menu of the Option Button to hide
> it, but that won't work in my macro (at least, not the way I tried!). Any
> help is appreciated.
>
> Thanks!
>
> Jeff W.
>



 
Reply With Quote
 
Jeff Wright
Guest
Posts: n/a
 
      22nd Sep 2004
Nick,

Many thanks! It does the job just perfectly! Your help is greatly
appreciated.

Jeff

"Nick Hodge" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Jeff
>
> If you can set a property manually, you should be able to set it
> programmatically. I hid the button1 on sheet1 using this
>
> Sub hideButtonSheet1()
> Worksheets("Sheet1").OptionButton1.Visible = False
> End Sub
>
>
> --
> HTH
> Nick Hodge
> Microsoft MVP - Excel
> Southampton, England
> (E-Mail Removed)HIS
>
>
> "Jeff Wright" <(E-Mail Removed)> wrote in message
> news:fq64d.341707$sh.92019@fed1read06...
>> Greetings !
>>
>> Without going into unnecessary details as to why, I have written a macro
>> which, among other tasks, hides 10 rows. Within these rows is an Option
>> Button (created with the Control Toolbox under View Toolbars) which I
>> also wish to hide. The rows hide without any problems, but the Option
>> Button is still visible. Is there a way to hide an Option Button while
>> hiding rows? I know that I can go into the Properties menu of the Option
>> Button to hide it, but that won't work in my macro (at least, not the way
>> I tried!). Any help is appreciated.
>>
>> Thanks!
>>
>> Jeff W.
>>

>
>



 
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
option button (yes No) to hide rows Wanna Learn Microsoft Excel Misc 3 2nd Apr 2009 06:29 PM
Clicking Show/Hide Button still can't hide the arrows-formatting m =?Utf-8?B?Y3V0ZSBtb3VzZQ==?= Microsoft Word Document Management 1 10th Jun 2007 04:27 AM
Hide Option Button Control michael Microsoft Excel Programming 2 12th Oct 2006 03:52 PM
option button to hide rows, with password =?Utf-8?B?UlJQMzMz?= Microsoft Excel Programming 4 20th Feb 2005 09:39 PM
Sleep button option hide in power option properties =?Utf-8?B?RXJhcmQgRGF2aWQ=?= Windows XP General 3 29th Jun 2004 03:11 PM


Features
 

Advertising
 

Newsgroups
 


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