MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 31st, 2002, 05:12 PM   #1
Mayk
New Member
 
Join Date: Mar 2002
Location: rejdus@hotmail.com
Posts: 18
Default

I need this for my IT project.
I have a spreadsheet with list of clients and its types. Names starts at B7 and by running macro i made new clients can be added to the row.
What I am confused with now is that i have other spreadsheet wit invoices where heading is MAINCONTRACTOR and its begin at cell C4.
What i am looking for is that i want to make combo box which will have on that invoice spreadsheet list of clients which is found in the previous clients spreadsheet,the ones already in and it should also be added automatically new clients when added so i can choose in a column whoever contractor i want.
Anyone willing to help?
Please
Mayk is offline   Reply With Quote
Old Mar 31st, 2002, 05:27 PM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
Default

Quote:
On 2002-03-31 16:12, Mayk wrote:
I need this for my IT project.
I have a spreadsheet with list of clients and its types. Names starts at B7 and by running macro i made new clients can be added to the row.
What I am confused with now is that i have other spreadsheet wit invoices where heading is MAINCONTRACTOR and its begin at cell C4.
What i am looking for is that i want to make combo box which will have on that invoice spreadsheet list of clients which is found in the previous clients spreadsheet,the ones already in and it should also be added automatically new clients when added so i can choose in a column whoever contractor i want.
Anyone willing to help?
Please
Lets say that the worksheet containing client names is called Data.

Activate Insert|Name|Define.
Enter EndRow as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=MATCH(REPT("z",40),Data!$B:$B)

Activate Add.

Enter Clients as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=OFFSET(Data!$B$7,0,0,EndRow-6,1)

Activate OK.

Now, you should be able to use Clients as Source in data validation or as List range in a ComboBox.

Aladin




Aladin Akyurek is offline   Reply With Quote
Old Apr 1st, 2002, 04:13 AM   #3
Mayk
New Member
 
Join Date: Mar 2002
Location: rejdus@hotmail.com
Posts: 18
Default

[quote]
On 2002-03-31 16:27, Aladin Akyurek wrote:
Quote:
On 2002-03-31 16:12, Mayk wrote:
I need this for my IT project.
I have a spreadsheet with list of clients and its types. Names starts at B7 and by running macro i made new clients can be added to the row.
What I am confused with now is that i have other spreadsheet wit invoices where heading is MAINCONTRACTOR and its begin at cell C4.
What i am looking for is that i want to make combo box which will have on that invoice spreadsheet list of clients which is found in the previous clients spreadsheet,the ones already in and it should also be added automatically new clients when added so i can choose in a column whoever contractor i want.
Anyone willing to help?
Please
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Lets say that the worksheet containing client names is called Data.

Activate Insert|Name|Define.
Enter EndRow as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=MATCH(REPT("z",40),Data!$B:$B)

Activate Add.

Enter Clients as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=OFFSET(Data!$B$7,0,0,EndRow-6,1)

Activate OK.

Now, you should be able to use Clients as Source in data validation or as List range in a ComboBox.

Aladin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Aladin thnx 4 help
but i have few misunderstandings. Where should i type the formulas?macros box or formula box with = sign? i am not quite sure.
Also "Activate Insert|Name|Define." i dont really know what i shoul do in this step?r u able to explain more?plz
"Lets say that the worksheet containing client names is called Data."dont know wot dat is either.plz help a bit more if u get a time...
Thank you
Mayk is offline   Reply With Quote
Old Apr 1st, 2002, 04:31 AM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
Default

Mayk,

My understanding is that you have the names of the clients in some worksheet. What is the name of this worksheet: Sheet1 or what?

You seem to have a macro that enables you to add new client names to the already existing list of names. Right?

You have also another worksheet that you use to set up an invoice. And, you want to be able to select from either a dropdown list or a ComboBox the name of the relevant client. Right?

Addendum: Is this a school project, I mean, an assignment?

Aladin

[ This Message was edited by: Aladin Akyurek on 2002-04-01 03:32 ]
Aladin Akyurek is offline   Reply With Quote
Old Apr 4th, 2002, 12:41 PM   #5
Mayk
New Member
 
Join Date: Mar 2002
Location: rejdus@hotmail.com
Posts: 18
Default

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Mayk,

My understanding is that you have the names of the clients in some worksheet. What is the name of this worksheet: Sheet1 or what?

You seem to have a macro that enables you to add new client names to the already existing list of names. Right?

You have also another worksheet that you use to set up an invoice. And, you want to be able to select from either a dropdown list or a ComboBox the name of the relevant client. Right?

Addendum: Is this a school project, I mean, an assignment?

Aladin

[ This Message was edited by: Aladin Akyurek on 2002-04-01 03:32 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aladin

sorry for not being online for a while and keep you waiting. Firstly yes ure right this is a project in excel.

What Ive done is a made a seperate spreadsheet from the main one, so there are two spreadsheets:
1/ As~project- main one
2/DATABASE~4~COMBO- database one

In DATABASE~4~COMBO spreadsheet i have a data of clients,it starts in a row B7.
then I made a button which allows me to enter new client under lat one entered.
What i need now is to make a combo box in As~project spreadsheet which will import clients names from DATABASE~4~COMBO spreadsheet.
What I dunno is that i dont know where and maybe how do i enter this commands u gave it to me before. like the ones below.Plz if u can help or give me a piece of small advice.
Thanx

Activate Insert|Name|Define.
Enter EndRow as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=MATCH(REPT("z",40),Data!$B:$B)

Activate Add.

Enter Clients as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=OFFSET(Data!$B$7,0,0,EndRow-6,1)

Activate OK.

Now, you should be able to use Clients as Source in data validation or as List range in a ComboBox.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Mayk is offline   Reply With Quote
Old Apr 4th, 2002, 12:58 PM   #6
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
Default

Quote:
On 2002-04-04 11:41, Mayk wrote:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Mayk,

My understanding is that you have the names of the clients in some worksheet. What is the name of this worksheet: Sheet1 or what?

You seem to have a macro that enables you to add new client names to the already existing list of names. Right?

You have also another worksheet that you use to set up an invoice. And, you want to be able to select from either a dropdown list or a ComboBox the name of the relevant client. Right?

Addendum: Is this a school project, I mean, an assignment?

Aladin

[ This Message was edited by: Aladin Akyurek on 2002-04-01 03:32 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aladin

sorry for not being online for a while and keep you waiting. Firstly yes ure right this is a project in excel.

What Ive done is a made a seperate spreadsheet from the main one, so there are two spreadsheets:
1/ As~project- main one
2/DATABASE~4~COMBO- database one

In DATABASE~4~COMBO spreadsheet i have a data of clients,it starts in a row B7.
then I made a button which allows me to enter new client under lat one entered.
What i need now is to make a combo box in As~project spreadsheet which will import clients names from DATABASE~4~COMBO spreadsheet.
What I dunno is that i dont know where and maybe how do i enter this commands u gave it to me before. like the ones below.Plz if u can help or give me a piece of small advice.
Thanx

Activate Insert|Name|Define.
Enter EndRow as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=MATCH(REPT("z",40),Data!$B:$B)

Activate Add.

Enter Clients as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=OFFSET(Data!$B$7,0,0,EndRow-6,1)

Activate OK.

Now, you should be able to use Clients as Source in data validation or as List range in a ComboBox.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Activate Insert|Name|Define means:

Go to the Menu bar of Excel, choose Insert, choose Name in the Insert menu, and choose Define in the Name menu. After this, you end up in a window. Then carry out the rest of the instructions.


Aladin Akyurek is offline   Reply With Quote
Old Apr 5th, 2002, 04:15 AM   #7
Mayk
New Member
 
Join Date: Mar 2002
Location: rejdus@hotmail.com
Posts: 18
Default


Activate Insert|Name|Define.
Enter EndRow as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=MATCH(REPT("z",40),Data!$B:$B)

Activate Add.

Enter Clients as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=OFFSET(Data!$B$7,0,0,EndRow-6,1)

Activate OK.

Now, you should be able to use Clients as Source in data validation or as List range in a ComboBox.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aladin i done what u ve told me however when i highlite the combobox and
Activate Insert|Name|Define then i typed all the formulas u told me to.
However at the end at last step when i activate OK and come back to invoice sheet where combo box was ,there is no data there?
am i doing something wrong?
Mayk is offline   Reply With Quote
Old Apr 5th, 2002, 05:26 AM   #8
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-04-05 03:15, Mayk wrote:

Activate Insert|Name|Define.
Enter EndRow as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=MATCH(REPT("z",40),Data!$B:$B)

Activate Add.

Enter Clients as name in the Names in Workbook box.
Enter the following formula in the Refers to box:

=OFFSET(Data!$B$7,0,0,EndRow-6,1)

Activate OK.

Now, you should be able to use Clients as Source in data validation or as List range in a ComboBox.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aladin i done what u ve told me however when i highlite the combobox and
Activate Insert|Name|Define then i typed all the formulas u told me to.
However at the end at last step when i activate OK and come back to invoice sheet where combo box was ,there is no data there?
am i doing something wrong?
Aladin's answer is fine for 1 Workbook but won't work from one to another.

In case your wondering though, by follow Aladin's instructions you've created an Dynamic range, in which you list is housed.

The two ways of using this list (but only within the same Workbook) are:

1) Select the cell you want your list to be in,
Goto Data>Validation which brings up a dialogue box,
Click the Allow Combobox and select List.
Now, in the Source box type =Clients.
THis method is for a drop down box which will reveal itself when you select that cell.

2) For the Combobox, if your using the one from the Controls Toolbox list (it doesn't work ofr the Forms controls),
in design mode, Right Click on the button select Properties,
in the box next ListFill type =Clients.

Sorry I can't proporly answer your question, what (I think) you need is some VBA help, something I'm no Novice at.


__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old Apr 5th, 2002, 05:28 AM   #9
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Just thought actually, in your Invoice book on a separate sheet called Data you could link the cells to the Client Workbook and follow Aladin's instruction in the Invoice Book instead.
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:52 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes