so I have asked how to change the value in a cell inside of excel using c#, but what if I want to change the value of a drop down list. The code I am using for sheet modifying is below. Any help is appreciated.
public virtual Object ActiveSheet { get; set; }
private void button3_Click(object sender, EventArgs e)
{
var sheet = (Excel._Worksheet)this.ActiveSheet;
sheet.Cells[6, 6] = "6";
}
I get the sheet to open but when it goes to the list it gives me NullReferenceException.
Figured it out took me a long time please use it!!