Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Can you linke a ComboBox in a Form

Yes, not hard to do at all:
Create the userform, add the combobox. Open up the Properties for the
combobox and under RowSource put the address of the range that includes your
customers and SSNs. Add a textbox underneath. Then, right-click on the
combobox and choose "View Code." In the VBA editor, put the following (make
sure you use the names of your controls, if they are different than ComboBox1
and TextBox1):

Private Sub ComboBox1_Change()

TextBox1.Value = ComboBox1.Column(1)

End Sub


"MESTRELLA29" wrote:

I have a form and want to include a Combobox that is linked to a Customer
excel Sheet that has Name & Social Security

Once you selcet the customer I need to display the customer social security
bellow the name, can this be done?

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
form control combobox Gail Excel Discussion (Misc queries) 7 October 2nd 09 07:27 PM
Form Help - ComboBox - VBA jlclyde Excel Discussion (Misc queries) 5 January 13th 09 08:20 PM
link form combobox hngo Excel Worksheet Functions 0 July 28th 06 03:38 PM
VBA Form ComboBox question WTG Excel Worksheet Functions 3 February 26th 05 04:27 PM
VBA Form ComboBox question WTG Excel Programming 3 February 26th 05 03:19 PM


All times are GMT +1. The time now is 04:58 AM.

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

About Us

"It's about Microsoft Excel"