I have create name range on sheet “A” so I need to use this range as validation ComboBox on sheet B. I want to know how can I setting validation as range using C#?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The sheets won’t matter because you’ll just reference the named range of the list value range. Here you go below (assumes Interop) –
listValidatingRangeis where you have your values that need to be displayed in the dropdown – add that as a named range.cellThatNeedsValidatingis the cell that you want the drop-down to appear in – add that as a named range. Then, oncellThatNeedsValidating, add the validation to be that of"=ListValidatingRange".