Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to put together a bill of materials for requesting hardware quotes.
My worksheet has drop down validation for getting the part numbers and descriptions. What i need to happed is that when I a certain part number is selected it automatically inserts a row below with another part numer and quantity. There are several partnumbers that would need to generate the same additional required part number. How can I tell it that if "Part A" selected add "Part C with qty X" or "Part B" selected add "Part C with qty Y" |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am fairly new to event programming, but it seems that you could do this
through such a method. You could paste something like the following in the worksheet VBA editor: Private Sub Worksheet_Change(ByVal Target As Range) Set Target = Range("B8") If Target = "Part A" Then Range("B9").Value = "Part C with qty X" Else If Target = "Part B" Then Range("B9").Value = "Part C with qty Y" End If End If End Sub Something like that. If you want more specific help, just post what you have in more detail and I/Someone can do more specific work. Hope this helps! -- -SA "Ted" wrote: I am trying to put together a bill of materials for requesting hardware quotes. My worksheet has drop down validation for getting the part numbers and descriptions. What i need to happed is that when I a certain part number is selected it automatically inserts a row below with another part numer and quantity. There are several partnumbers that would need to generate the same additional required part number. How can I tell it that if "Part A" selected add "Part C with qty X" or "Part B" selected add "Part C with qty Y" |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert new Worksheet with name, and insert the sheet into itsalphabetical / numerical location | Excel Programming | |||
insert row / insert column command buttons | Excel Worksheet Functions | |||
How can I insert a date with an icon (calendar) insert | Excel Discussion (Misc queries) | |||
Macro to insert copy and insert formulas only to next blank row | Excel Programming | |||
Insert cell/format/text/fontsize and auto insert into header? | Excel Programming |