ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,832
- Office Version
- 2007
- Platform
- Windows
Hi,
I have a customers name in cell G13 example TOM JONES 001 on worksheet INV
I open a userform & i need 2 TextBoxes to be populated with values from my worksheet for TOM JONES 001
It should work like this.
On worksheet INV in cell G13 take note of customers name.
Look for this customers name on worksheet DATABASE in column A
Once found the values needed are in column C for TextBox3 & column K for TextBox2
Thanks please advise.
I was using the below but the name in question works if on row 6
I have a customers name in cell G13 example TOM JONES 001 on worksheet INV
I open a userform & i need 2 TextBoxes to be populated with values from my worksheet for TOM JONES 001
It should work like this.
On worksheet INV in cell G13 take note of customers name.
Look for this customers name on worksheet DATABASE in column A
Once found the values needed are in column C for TextBox3 & column K for TextBox2
Thanks please advise.
I was using the below but the name in question works if on row 6
Rich (BB code):
Private Sub UserForm_Initialize()
Me.StartUpPosition = 0
Me.Top = Application.Top + 210 ' MARGIN FROM TOP OF SCREEN
Me.Left = Application.Left + Application.Width - Me.Width - 350 ' LEFT / RIGHT OF SCREEN
TextBox2.Value = Sheets("DATABASE").Range("K6").Value
TextBox3.Value = Sheets("DATABASE").Range("C6").Value
End Sub