#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Forms

We use an excel 2000 form as an order form.

We enter the customer "bill to address" manually.

What is the best way to get excel to automatically fill
in the "bill to address" cells based on data entered in
a "customer number" cell.

We have a separate excel worksheet with "customer
numbers" and "bill to" data.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Forms

We use an excel 2000 form as an order form.

We enter the customer "bill to address" manually.

What is the best way to get excel to automatically fill
in the "bill to address" cells based on data entered in
a "customer number" cell.


By cell do you mean an input box on the form ? If so you can use the
onChange event to trigger some code to look through a range in your customer
numbers work sheet and pull the address.

We have a separate excel worksheet with "customer
numbers" and "bill to" data.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Forms

Take a look at the =vlookup() worksheet function.

If your separate sheet is named CustomerData and your custnumbers are in column
A and the Bill-to address is in column B:

=if(c3="","",vlookup(c3,customerdata!a:b,2,false))

(if you put the customer number in C3.)

Kord wrote:

We use an excel 2000 form as an order form.

We enter the customer "bill to address" manually.

What is the best way to get excel to automatically fill
in the "bill to address" cells based on data entered in
a "customer number" cell.

We have a separate excel worksheet with "customer
numbers" and "bill to" data.

Thanks


--

Dave Peterson

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
Forms ginger New Users to Excel 0 May 27th 08 01:26 AM
forms Monty Excel Discussion (Misc queries) 2 October 17th 05 01:54 PM
Forms Mike Excel Worksheet Functions 0 July 5th 05 11:40 PM
Pop Up Forms TBD Excel Discussion (Misc queries) 9 January 27th 05 04:27 PM
Forms DebbieG Excel Programming 1 September 10th 03 06:15 PM


All times are GMT +1. The time now is 03:49 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"