Hi,
I have a problem with Data Validation (Dropdown Lists).
I have created a file that is dynamically creating dropdown lists for multiple cells on the Sheet.
The values for the list are being passed directly (as values), not as an actual range (address) from the sheet:
theList = ""
If Worksheets("temp.ws").Range("A2") <> "" Then
For k = 1 To Worksheets("temp.ws").Range("A1").End(xlDown).Row
theList = theList & ", " & Worksheets("temp.ws").Cells(k, 1).Value
Next 'k
With theDestination.Offset(3, 1).Validation
.Delete
.Add Type:=xlValidateList, Formula1:=theList
End With
End If
Everything is working as intended until i save the file and try to reopen it. Upon opening I'm getting message :
"Removed Feature: Data validation from /xl/worksheets/sheet2.xml part"
and all dropdown lists disappear.
This is what happens when I save the file in .xlsm format (Excel 2010, macro enabled spreadsheet).
When I save the same file in binary format (.xlsb) I'm getting different message upon opening:
"Repaired Records: Formula from /xl/worksheets/sheet2.bin part"
and most of the dropdown lists are intact, except the ones that had more than 5 items (dropdown arrow is still visible but there is no list showing when pressed).
I have checked all the formulas (of which I have quite a lot on this sheet) and they didn't seem to be anyhow changed/amended.
They are quite complicated but there is not much different functions used,
e.g.:
=IFERROR(SUMIFS('wk1'!$P$2:$P$3000, 'wk1'!$D$2:$D$3000,$A$276,'wk1'!$V$2:$V$3000,$B$278,'wk1'!$A$2:$A$3000,startdate) /SUMIFS(INDIRECT(IF(RIGHT($B$278,5)= "Small","'wk1'!$G$2:$G$3000",IF(RIGHT($B$278,5)="edium" ,"'wk1'!$H$2:$H$3000",IF(RIGHT($B$278,5)="Large","'wk1'!$I$2:$I$3000",IF(RIGHT($B$278,5)="Bulky", "'wk1'!$J$2:$J$3000",1))))),'wk1'!$D$2:$D$3000,$A$276,'wk1'!$V$2:$V$3000,$B$278,'wk1'!$A$2:$A$3000, startdate),0)
Any thoughts?
Thanks in advance for any ideas.