Advice with optionbutton visible True / False

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,251
Office Version
  1. 2007
Platform
  1. Windows
Hi,
Please can you advise.
Screenshot to help you shown below.

When my form opens on the worksheet you can see the 41835 & 41601
Selecting 4488516 then shows option to the right 41601 & UPRATED 41601
Selecting 1454418 then shows option to the right 41835 & UPRATED 41835

Selecting one of these options then prefills ITEM "TextBox4" & FORD PART NUMBER "TextBox3"

My issue is i select 41601 & the textboxes are prefilled BUT if i then select UPRATED 41601 i dont see what was in the TextBox removed & replaced with the correct text.


Here is my code but can you advise please

Rich (BB code):
    Private Sub OptionButton5_Change()
        If OptionButton5.Value = True Then
        OptionButton3.Visible = True
        OptionButton4.Visible = True
        OptionButton1.Visible = False
        OptionButton2.Visible = False
    ElseIf OptionButton5.Value = False Then
        TextBox3.Text = ""
        TextBox4.Text = ""
        End If
        End Sub
    Private Sub OptionButton6_Change()
        If OptionButton6.Value = True Then
        OptionButton1.Visible = True
        OptionButton2.Visible = True
        OptionButton3.Visible = False
        OptionButton4.Visible = False
    ElseIf OptionButton6.Value = False Then
        TextBox3.Text = ""
        TextBox4.Text = ""
        End If
 

Attachments

  • 1278.jpg
    1278.jpg
    45 KB · Views: 1
  • 1279.jpg
    1279.jpg
    45.1 KB · Views: 2
  • 1277.jpg
    1277.jpg
    33.3 KB · Views: 1

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,215,826
Messages
6,127,116
Members
449,359
Latest member
michael2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top