Poplulate Userform TxtBox and still be able to edit the Txtbox

BillLogue

New Member
Joined
Nov 6, 2011
Messages
5
I have a Userform that has 2 radio buttons. Depending on the selection updates the worksheet automaticlly. It also has a textbox that I need to be updated with the cell that the radio buttons are linked to. That much I have completed. My problem now is that I need to be able to edit the text box so that when I press submit it updates a seperate cell. However once it is updated it can not be edited.

So that you know, the radio buttons are meant to load a template to the text box that needs to be edited based on the situation.

Here is the code that I have so fare
Code:
 Private Sub OffBase_Click()
    If OffBase.Value = True Then
        Range("TA!A43").Value = Range("TA!A41")
    Else
        Range("TA!A43").Value = Range(" ")
    End If
End Sub
Private Sub OnBase_Click()
    If OnBase.Value = True Then
        Range("TA!A43").Value = Range("TA!A40")
    Else
        Range("TA!A43").Value = Range(" ")
    End If
End Sub
Private Sub OnReport_Change()
    OnReport.Value = Range("TA!A43")
End Sub

Thank you in advance.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,215,233
Messages
6,123,771
Members
449,122
Latest member
sampak88

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