简体   繁体   中英

auto-complete (Intellisense) in Excel sheet created using C#

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.

将其称为Range.AutoComplete(string) ,其中Range包含[BUS,TRAIN]等。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM