Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Populate TextBox with other textbox value
Hello,
.... Private Sub UserForm_Initialize() Me.UserName = Environ("username") .... I have two textbox that I fill it based on the value of first textbox (UserName) Taking the data in a sheet called "Users" with fields (Username, Name_FirstName, Phone) Thanks in advance Yves |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Populate TextBox with other textbox value
hello Yves,
Private Sub UserForm_Initialize() Dim sUserName As String, x As Integer sUserName = Environ("username") With Sheets("Users") If Not IsError(Application.Match(sUserName, .Range("A:A"), 0)) Then x = Application.Match(sUserName, .Range("A:A"), 0) TextBox1 = .Range("A" & x) TextBox2 = .Range("B" & x) TextBox3 = .Range("C" & x) End If End With End Sub -- isabelle |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Populate TextBox with other textbox value
Hello Isabelle,
Big Thanks to you. Yves hello Yves, Private Sub UserForm_Initialize() Dim sUserName As String, x As Integer sUserName = Environ("username") With Sheets("Users") If Not IsError(Application.Match(sUserName, .Range("A:A"), 0)) Then x = Application.Match(sUserName, .Range("A:A"), 0) TextBox1 = .Range("A" & x) TextBox2 = .Range("B" & x) TextBox3 = .Range("C" & x) End If End With End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Populate TextBox with Change Event | Excel Programming | |||
populate listbox as textbox changes question | Excel Programming | |||
Use a formula to populate a label from a textbox | Excel Discussion (Misc queries) | |||
Populate a cell with TextBox info | Excel Programming |