Hi Amjad,
Using Aspose.Cells.Validation, we can find if any wrong value is entered in dropdown like the code below.
Dim valFactor As Aspose.Cells.Validation
valFactor = WorkSheet.Validations(WorkSheet.Validations.Add())
valFactor.Type = Aspose.Cells.ValidationType.List
valFactor.Operator = Aspose.Cells.OperatorType.None
valFactor.InCellDropDown = True
valFactor.ShowError = True
valFactor.AlertStyle = Aspose.Cells.ValidationAlertType.Stop
valFactor.ErrorTitle = "Error"
valFactor.ErrorMessage = "Please select a Unit from the list"
valFactor.Formula1 = String.Join("kwh,mwh,kh")
area = New Aspose.Cells.CellArea
cell = GetCellFromEnum(Of CellPosition)(CellPosition.VolumeUnitValue)
area.StartColumn = cell.Column
area.EndColumn = cell.Column
area.StartRow = cell.Row
area.EndRow = cell.Row
valFactor.AreaList.Add(area)
This code throws an error message if we enter some other value other than "kwh,mwh,kh".
In the same way, Is there any possible way that we can validate dropdown in excel using Aspose.
No Idea of doing in MSExcel. Please provide me some solution.