Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Using a TextBox in a Userform

How do I use a textbox (or similar tool) in a userform to display the results
of a lookup based on another input box in the same userform. In other words,
I want to enter a number into field one and have field two show the results
of a lookup all before pressing the OK button.
--
RWL
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Using a TextBox in a Userform

Private Sub TextBox1_AfterUpdate()
With Me

.TextBox2.Text = Application.VLookup(.TextBox1.Text,
Worksheets(1).Columns("A:B"), 2, False)
End With
End Sub



--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"bobl" wrote in message
...
How do I use a textbox (or similar tool) in a userform to display the
results
of a lookup based on another input box in the same userform. In other
words,
I want to enter a number into field one and have field two show the
results
of a lookup all before pressing the OK button.
--
RWL



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Userform Textbox help Joey_83 Excel Programming 1 September 11th 07 09:14 AM
Userform textbox help [email protected] Excel Programming 0 September 16th 06 10:57 PM
userform textbox Phil Excel Worksheet Functions 5 January 16th 05 06:59 PM
Textbox in userform shaharul[_6_] Excel Programming 3 April 15th 04 12:54 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 10:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"