![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: Baltimore
Posts: 29
|
The phone number text box and address text box are on the same form. The address needs to be displayed as soon as the phone number is entered. If the value of my phone number in the text box, equals a phone number in another sheet (Phone Table), then the address should display in the address text box below the phone number text box.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Something like this (note: I've not tested this and I'm just typing this into the forum, so if it works first time, that's amazing) I've also called your textboxes - txtPhone and txtAddress respectively and I've assume that the Phone number is in the column to the right of the address. i.e. if Phone number is in Column A, Address is in Column B:
Put this code on a button click event or something. If you need any help just repost. HTH |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|