Related:
- Excel blinking cell without macro
- Spell number in excel without macro - Guide
- Excel mod apk for pc - Download - Spreadsheets
- Excel macro to create new sheet based on value in cells - Guide
- Excel marksheet - Guide
- Kernel for excel - Download - Backup and recovery
6 responses
Excelguru
Posts
261
Registration date
Saturday April 11, 2009
Status
Member
Last seen
June 21, 2011
307
Jun 10, 2009 at 07:38 AM
Jun 10, 2009 at 07:38 AM
Hi
why you need a macro
put a formula =if(dropdownCellAddress="DECEASED","DEC","") in the target cell
why you need a macro
put a formula =if(dropdownCellAddress="DECEASED","DEC","") in the target cell
Thanks for your answer.. but Actually the formula is already used for creating the drop down :
Formula1:="=$n$1:$n$18"
where n1-n18 are the values of the drop down in cell M......
Now when i select any item from the list, it should be replaced by a different code ..
Moreover its not a single cell that needs to be changed!! every items after it is selected needs to be changed and then inserted into the cell..
Formula1:="=$n$1:$n$18"
where n1-n18 are the values of the drop down in cell M......
Now when i select any item from the list, it should be replaced by a different code ..
Moreover its not a single cell that needs to be changed!! every items after it is selected needs to be changed and then inserted into the cell..
Excelguru
Posts
261
Registration date
Saturday April 11, 2009
Status
Member
Last seen
June 21, 2011
307
Jun 14, 2009 at 08:49 AM
Jun 14, 2009 at 08:49 AM
Hi
how to delete this validation... try recording by removing the validation and add this to the selection_change procedure
how to get rid of this circular reference - You have referenced the same cell in the formula. Either you continue with circular reference or change to DEC using a macro in the selection_change precedure just after deleting the validation
how to delete this validation... try recording by removing the validation and add this to the selection_change procedure
how to get rid of this circular reference - You have referenced the same cell in the formula. Either you continue with circular reference or change to DEC using a macro in the selection_change precedure just after deleting the validation
Excelguru
Posts
261
Registration date
Saturday April 11, 2009
Status
Member
Last seen
June 21, 2011
307
Jun 10, 2009 at 10:17 AM
Jun 10, 2009 at 10:17 AM
Hi
code under the Worksheet_Selection Change in the VBEditor page of that window
IF the target cells value is changed to DECEASED then delete the validation and change its value to DEC
Do a little bit recording first for these two procedures and add to above procedure.
code under the Worksheet_Selection Change in the VBEditor page of that window
IF the target cells value is changed to DECEASED then delete the validation and change its value to DEC
Do a little bit recording first for these two procedures and add to above procedure.
Thanks a lot excelguru...
i am very close to solving this problem with your help...........
jus guide me a lil bit more.. i m totally amateur in this, so pardon my standard!
i have used this in my form.....
For a = 1 To iCurrentLastRow
.Range("m" & a).Formula = "=IF(m" & a & "=" & Chr(34) & "Deceased" & Chr(34) & "," & Chr(34) & "DEC" & Chr (34) & "," & Chr(34) & "Not Deceased" & Chr(34) & ")"
.Range("m" & a).FormulaHidden = False
Next a
and later for adding the drop down i hav used ..
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=$n$1:$n$18"
please guide me how to delete this validation... cos its showing circular references are present while opening the excel sheet.......... (When a formula refers back to its own cell, either directly or indirectly, it is called a circular reference) and how to get rid of this circular reference
i am very close to solving this problem with your help...........
jus guide me a lil bit more.. i m totally amateur in this, so pardon my standard!
i have used this in my form.....
For a = 1 To iCurrentLastRow
.Range("m" & a).Formula = "=IF(m" & a & "=" & Chr(34) & "Deceased" & Chr(34) & "," & Chr(34) & "DEC" & Chr (34) & "," & Chr(34) & "Not Deceased" & Chr(34) & ")"
.Range("m" & a).FormulaHidden = False
Next a
and later for adding the drop down i hav used ..
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=$n$1:$n$18"
please guide me how to delete this validation... cos its showing circular references are present while opening the excel sheet.......... (When a formula refers back to its own cell, either directly or indirectly, it is called a circular reference) and how to get rid of this circular reference
Didn't find the answer you are looking for?
Ask a question
Sep 25, 2009 at 06:28 AM
Just make an array in the same sheet or define an array in another sheet.
do a vlookup of the corresponding drop down cell....
Let me know if you need more help.....
Apr 18, 2010 at 12:19 AM