help create a quote tool

timmi18

New Member
Joined
Aug 5, 2011
Messages
3
hi, im trying to create a quote tool and im having a lot of difficulty, the first thing i need to do is choose a product and have certain prices appear accorfin to the product chosen. Thereafter there are 4 conditions for the prices to appear

Supplier
area
profile
mtc

i have entered all the data in another sheet but have absolutely no idea how to link it or waht formulas to use or even waht macro.

can someone please let me know how to attach my files thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi Timmi,

It sounds like you want to populate some of the ComboBoxes according values selected in other comboboxes. The only good way that I am aware of for doing this requires macros.

To do this you wil need to save the workbook as an XLSM first.

Then, if you double click on any combobox (in design mode) Excel will create a subroutine for that particular control - which is run any time that the value of it changes.

Here is an example that prints (to the VBE immediate window) a few properties of the combobox

Code:
Sub ComboBox1_Change()
    Debug.Print ComboBox1.Value
    Debug.Print ComboBox1.Name
    Debug.Print ComboBox1.List(0)
    Debug.Print ComboBox1.ListCount
End Sub

You can also get and set properties of the other comboboxes. For example, this code conditionally sets the available values of ComboBox2 according to the selection made in combobox1

Code:
Sub ComboBox1_Change()
    ComboBox2.Clear
    If ComboBox1.Value = "A" Then
        ComboBox2.AddItem "A1"
        ComboBox2.AddItem "A2"
    ElseIf ComboBox1.Value = "B" Then
        ComboBox2.AddItem "B1"
        ComboBox2.AddItem "B2"
    End If
End Sub


I think that you have to remove any ListFillRange and/or LinkedCell values before you can use the .AddItem Method.

This is just a simple example. You would probably want to loop through ranges to populate your controls rather than manually adding values.

You can do some brilliant stuff using VBA and Worksheet Form/ActiveX controls, but to get it polished and beautiful takes a fair bit of work. You will need to familiarise yourself with all of the main properties/methods of the Combox Controls for starters.

VBA is generally better than using worksheet formulas for something like this, but formulas may be easier, in which case you may want to look at functions such as VLOOKUP, INDEX, IF, AND, OR, SUMIFS, COUNTIFS etc. Also conditional formatting and validation works well with Excel Apps like this...

Hope this helped...
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,248
Members
452,900
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top