Solved

user form

Posted on 2012-03-14
4
219 Views
Last Modified: 2012-03-15
I have a user form with four option buttons

if the user presses Option 1, another userform appears. if they close the second user form then they are back to the original user form.

If they wanted to press Option 1 again, they cant, as it is already selected.

How can i set the properties so that once a button is pressed, it is not stuck on that option

Thanks
Seamus
0
Comment
Question by:Seamus2626
4 Comments
 
LVL 13

Accepted Solution

by:
lee555J5 earned 300 total points
ID: 37720395
Why would you use option buttons for this? Could you switch to regular buttons?

An alternative would be to clear your option buttons once the second form opens, or you could create a manual reset so all the options are available again.

Lee
0
 
LVL 13

Assisted Solution

by:Shanan212
Shanan212 earned 100 total points
ID: 37720594
Sub OptionClear()

    Dim ws As Worksheet
    Dim obj As OLEObject

    Set ws = Worksheets("yoursheetname")

    For Each obj In ws.OLEObjects
        If TypeName(obj.Object) = "OptionButton" Then      
           'if this is checkbox, then change the letters withing quotes to CheckBox
            obj.Object.Value = False
        End If
    Next obj
End Sub

Open in new window


call the above sub after calling second userform
0
 
LVL 33

Assisted Solution

by:Norie
Norie earned 100 total points
ID: 37721155
Seamus

Why not use a combobox and command button combination?

The combobox lists the options and the command button opens the relevant userform.
UF4FormComboMenu.xlsm
0
 

Author Closing Comment

by:Seamus2626
ID: 37724436
Hey guys, it was easiest to switch to regular command buttons,

Thanks
Seamus
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question