UserForm TextBox Values from multiple WS

Big Lar

Well-known Member
Joined
May 19, 2002
Messages
557
I’d like to add TextBox34.Value= Sheet1 AG:37 to this<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
Rich (BB code):
Private Sub TextBox2_AfterUpdate()<o:p></o:p>
Dim iRow As Long<o:p></o:p>
Dim WS As Worksheet<o:p></o:p>
Set WS = Worksheets("Sheet2")<o:p></o:p>
iRow = WS.Cells(Rows.Count, 1) _<o:p></o:p>
.End(xlUp).Offset(0, 0).Row<o:p></o:p>
<o:p></o:p>
WS.Cells(iRow, 2).Value = Me.TextBox2.Value<o:p></o:p>
WS.Cells(iRow, 3).Value = Me.TextBox3.Value<o:p></o:p>
TextBox4.Value = WS.Cells(iRow, 4).Value<o:p></o:p>
<o:p></o:p>
End Sub<o:p></o:p>

I haven't tried everything yet<o:p></o:p>
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,224,560
Messages
6,179,519
Members
452,921
Latest member
BBQKING

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