Hi Sixthsense,
Thank you for the reply
The code for the data validation is as follows
ActiveCell.FormulaR1C1 = "Pedestals"
ActiveCell.Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=INDIRECT(SUBSTITUTE(I82,"" "",""_""))"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Paver buildup"
.ErrorTitle = ""
.InputMessage = "Select build up type"
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
The I82 is a reference to the following data validation
ActiveCell.Offset(1, 0).Range("A1").Select
ActiveCell.FormulaR1C1 = "Pedestal Base"
ActiveCell.Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Pedestal Base,Aggregate Base"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = "Geotextiles"
.ErrorTitle = ""
.InputMessage = "Select textile type"
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
The drop down list in the first code would change based on if aggregate base or pedestal base is selected from the menu set in the second code.
I would need to change the I82 to reference 15 rows up no matter where i start the macro.
Is this enough info, or do you need the code for the whole macro?
Thanks
Damien
Bookmarks