I have used Microsoft.Office.Interop.Excel namespace to create excel sheets using C#. I want to have the auto-complete or Intellisense feature for a column in it. A particular column should have only two values in it. The values are BUS and TRAIN. When the user types B in any cell of that column; the text in the cell should get changed to BUS and when the user types T, the text should get changed to TRAIN.
I researched and found out there is a method called AutoComplete. But it looks for text from predefined list. How do I specify the predefined list?
any help on this would be greatly appreciated.
Call it as
Range.AutoComplete(string), where the Range contains [BUS, TRAIN] or the like.