How do I populate a combobox that is in a custom ribbon. When I try to use the .Items.Add() method (or whatever it's called) I get an error message that reads:
Cannot convert from 'object' to 'Microsoft.Office.Tools.Ri
I have included the code I have so far.
Any and all help is welcome!
private void ThisWorkbook_Startup(object sender, System.EventArgs e)
OracleConnection cs = new OracleConnection("User Id=MyUserID;Password=MyPassword;Data Source=OracleSID");
OracleDataAdapter da = new OracleDataAdapter("SELECT JOB_CODE, JOB_NAME FROM JCJOB", cs);
DataTable dt = new DataTable();
for (int i = 0; i < dt.Rows.Count; i++)
//Error is generated at this line!