Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default deselect all option buttons in a frame


I'm half way there with this.

From the top.
I have the below code which tags the value of frame1 as row1, Ok so
far.
Now the bit i'm stuck at. Then i want to make all the optionbuttons in
frame1 false.


Dim MyMike
row1 = Val(Frame1.Tag)
If row1 < IsNull(MyMike) Then
row1 = False
End If


--
mikewild2000
------------------------------------------------------------------------
mikewild2000's Profile: http://www.excelforum.com/member.php...fo&userid=3276
View this thread: http://www.excelforum.com/showthread...hreadid=514129

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default deselect all option buttons in a frame

Dim ctrl as Control
for each ctrl in Userform1.Frame1.Controls
if typeof ctrl is MSForms.OptionButton then
ctrl.Value = False
end if
Next

IsNull doesn't test if a variable is empty. Use isEmpty


--
Regards,
Tom Ogilvy

"mikewild2000"
wrote in message
news:mikewild2000.23hbha_1140357001.3242@excelforu m-nospam.com...

I'm half way there with this.

From the top.
I have the below code which tags the value of frame1 as row1, Ok so
far.
Now the bit i'm stuck at. Then i want to make all the optionbuttons in
frame1 false.


Dim MyMike
row1 = Val(Frame1.Tag)
If row1 < IsNull(MyMike) Then
row1 = False
End If


--
mikewild2000
------------------------------------------------------------------------
mikewild2000's Profile:

http://www.excelforum.com/member.php...fo&userid=3276
View this thread: http://www.excelforum.com/showthread...hreadid=514129



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default deselect all option buttons in a frame


thank you tom for your expert help.

I never thought of that method.


--
mikewild2000
------------------------------------------------------------------------
mikewild2000's Profile: http://www.excelforum.com/member.php...fo&userid=3276
View this thread: http://www.excelforum.com/showthread...hreadid=514129

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
Option Buttons disappear from the frame when not in design mode Linda New Users to Excel 0 April 23rd 10 04:06 PM
Enable target frame option Ian Excel Discussion (Misc queries) 0 April 6th 06 05:05 PM
Option buttons: How to get the selected option from a group? naddad Excel Programming 5 December 21st 05 05:09 PM
multipage - option buttons disappear from frame in Excel 2003 j b corner Excel Programming 3 November 30th 05 04:20 AM
Deselect option buttons Lookin for a job Excel Discussion (Misc queries) 1 August 16th 05 08:07 PM


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