Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2006

Tip: Looking for answers? Try searching our database.

deselect all option buttons in a frame

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mikewild2000 - 19 Feb 2006 13:48 GMT
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

Signature

mikewild2000

Tom Ogilvy - 19 Feb 2006 18:00 GMT
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

Signature

Regards,
Tom Ogilvy

> I'm half way there with this.
>
[quoted text clipped - 9 lines]
> row1 = False
> End If
mikewild2000 - 19 Feb 2006 19:21 GMT
thank you tom for your expert help.

I never thought of that method.

Signature

mikewild2000

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.