Display the Output in Textbox

Steve Jobs

New Member
Joined
May 8, 2015
Messages
41
Hello,

I trying to get the output in textbox8. Please let me know if anything is incorrect in the code.

Code:
Private Sub TextBox8_Change()
If OptionButton2.Value = True Then
Call Columntorow
End If
End Sub

Sub Columntorow()
Dim i As Long
'TextBox9.Text = ""

For i = 2 To Range("P" & Rows.Count).End(3).Row
    Range("M9").Value = Range("M9").Value & Range("P" & i).Value
    Range("M9").Value = Range("M9").Value
Next i
End Sub
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hello

Try this:

Code:
' UserForm control
Private Sub UserForm_Click()
    MsgBox Me.iBox.Text
End Sub

' sheet ActiveX control
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    MsgBox Me.TextBox1.Text
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,507
Messages
6,114,029
Members
448,543
Latest member
MartinLarkin

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