The documentation for openxlsx::dataValidation
demonstrates how to get a dropdown menu by referencing cell(s). However, I'm interested in adding text input ("Yes" and "No") as dropdown menu options, but every attempt I've tried results in corrupted files (on Excel for Mac). Alternatives I've tried for the value
argument involves "Yes;No"
, "Yes,No"
, "'Yes;No'"
, "'Yes';'No'"
, but all are unsuccessful.
Any suggestions on how to resolve this issue? I am aware that I can create yes and no as cell references from, for example, a separate sheet with such list inputs. But I would like to avoid it if possible.