Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How easy is it to have a cell that has a drop down box in it containing two
values. (e.g. yes / no). If one value is selected (e.g. yes), the five cells below that cell are auto populated with a value, if the other value is selected they are blanked so free text can be added. I assume this will mean I have to delve into the realm of Macro writing (I have programmed in VB6 so should be able to get on with syntax / object model etc) but if I don't then that will be a bonus. Thanks David |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Stop the press - I think I've cracked. Found a useful example on Google. Will update is I find it works. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() you could try a worksheet change event, I just recorded this with the macro recorder then copied and pasted it into the worksheet module Private Sub Worksheet_Change(ByVal Target As Range) If Union(Range("A1"), Target).Address = Range("A1").Address Then Range("A2:A6").Select Selection.FormulaR1C1 = "=IF(R1C1=""Yes"",100,"""")" Range("A3").Select ActiveCell.FormulaR1C1 = "=IF(R1C1=""Yes"",200,"""")" Range("A4").Select ActiveCell.FormulaR1C1 = "=IF(R1C1=""Yes"",300,"""")" Range("A5").Select ActiveCell.FormulaR1C1 = "=IF(R1C1=""Yes"",400,"""")" Range("A6").Select ActiveCell.FormulaR1C1 = "=IF(R1C1=""Yes"",500,"""")" Range("A7").Select End If End Sub -- davesexcel ------------------------------------------------------------------------ davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708 View this thread: http://www.excelforum.com/showthread...hreadid=553012 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Linking Groups of cells between workbooks | Excel Discussion (Misc queries) | |||
Populate cell with letters from other cells | Excel Discussion (Misc queries) | |||
copying cell names | Excel Discussion (Misc queries) | |||
Auto populate cells based on 2 cells division. | Excel Discussion (Misc queries) | |||
GET.CELL | Excel Worksheet Functions |