Hi - I am in the midst of creating a spreadsheet that will effectively create a list of ingredients when a specific menu is selected from a dropdown list. Having stumbled around for hours trying to do this with basic excel commands I have been reading through various vba techniques and feel that this is the way forward. I have found bits of code that allow me to do some of the bits I want to do - but not all. I will explain what I want to achieve and then see if anyone can help . . . .
I'm using Excel 2016 and have a spreadsheet with 3 sheets in it. Input is the first sheet and is where the user will be prompted to select a menu from a dropdown list. Test Area is the second sheet, and this is where I want the data to appear (it is currently blank and unformatted). Menus is the third sheet - this features all the ingredients relating to a particular menu.
What I want to do is:
When a user selects a menu from the dropdown list - the code selects a range of cells from the Menus sheet and pastes it into the Test Area sheet.
I then want the user to be able to select from a second dropdown list and repeat this process appending the ingredients into the Test Area sheet.
Ideally, the info in Menus needs to come over to the Test Area sheet EXACTLY as it is in the Menus sheet - ie. column widths, row heights, currency formatting, formulas, font style, size etc.
The desired result would be that the user can see all the ingredients required for a given meal plan.
Any help would be gratefully received.
I'm using Excel 2016 and have a spreadsheet with 3 sheets in it. Input is the first sheet and is where the user will be prompted to select a menu from a dropdown list. Test Area is the second sheet, and this is where I want the data to appear (it is currently blank and unformatted). Menus is the third sheet - this features all the ingredients relating to a particular menu.
Test Menus 1.xlsm | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | |||
2 | Quantities for 50 Servings | Detail | Supplier | Unit Product Code | Unit Cost | Multi Product Code | Multi Pack Cost | No. Units in Multi | Units Req | Multi Req | Total Costs | ||||||||||||||
3 | Caesar Salad | ||||||||||||||||||||||||
4 | Garlic Powder | 65g | East End Garlic Powder (100g) | Tesco | n/a | £1.15 | 1 | £1.15 | |||||||||||||||||
5 | Mayonnaise | 1.44 litres | Tesco Light Mayonnaise (500ml) | Tesco | n/a | £0.65 | 3 | £1.95 | |||||||||||||||||
6 | Anchovy Fillets | 160g | Cantobrian Anchovy Fillets (100g) | Tesco | n/a | £1.90 | 2 | £3.80 | |||||||||||||||||
7 | Parmesan Cheese | 270g | Grated Parmigiano Reggiano (100g) | Tesco | n/a | £2.20 | 3 | £6.60 | |||||||||||||||||
8 | Worcestershire Sauce | 40 ml | Lea & Perrin's Worcestershire Sauce (150ml) | Tesco | n/a | £1.60 | 1 | £1.60 | |||||||||||||||||
9 | Dijon Mustard | 40 ml | Grey Poupon Dijon Mustard (215g) | Tesco | n/a | £1.40 | 1 | £1.40 | |||||||||||||||||
10 | Lemon Juice | 120 ml | Lemon Juice (500ml) | Tesco | n/a | £1.10 | 1 | £1.10 | |||||||||||||||||
11 | Salt | To taste | Tesco Table Salt | Tesco | n/a | £0.35 | 1 | £0.35 | |||||||||||||||||
12 | Black Pepper | To taste | Schwartz Black Pepper Grinder (35g) | Tesco | n/a | £3.00 | 1 | £3.00 | |||||||||||||||||
13 | Olive Oil | 480 ml | Filippo Extra Virgin Olive Oil (500ml) | Tesco | n/a | £3.75 | 1 | £3.75 | |||||||||||||||||
14 | Bread | 50 thick slices | Hovis Soft White Thick Slices (16 | Tesco | n/a | £1.10 | 3 | £3.30 | |||||||||||||||||
15 | Romaine Lettuce | 24 | Farm Fresh Romaine Lettuce (2 pack) | Booker | 127355 | £1.29 | 127354 | £6.45 | 5 | 2 | 2 | £15.48 | |||||||||||||
16 | Estimated Total: | £43.48 | |||||||||||||||||||||||
Side Dishes |
Cell Formulas | ||
---|---|---|
Range | Formula | |
W4:W15 | W4 | =SUM(K4*S4)+SUM(O4*U4) |
W16 | W16 | =SUM(W4:W15) |
What I want to do is:
When a user selects a menu from the dropdown list - the code selects a range of cells from the Menus sheet and pastes it into the Test Area sheet.
I then want the user to be able to select from a second dropdown list and repeat this process appending the ingredients into the Test Area sheet.
Ideally, the info in Menus needs to come over to the Test Area sheet EXACTLY as it is in the Menus sheet - ie. column widths, row heights, currency formatting, formulas, font style, size etc.
The desired result would be that the user can see all the ingredients required for a given meal plan.
Any help would be gratefully received.