Excel 如何使用多个查找值拆分和更新列表
目前,我正在读取excel工作表中的行并更新SharePoint列表。其中一些是查找列 现在假设excel中的一行是:Excel 如何使用多个查找值拆分和更新列表,excel,split,vba,Excel,Split,Vba,目前,我正在读取excel工作表中的行并更新SharePoint列表。其中一些是查找列 现在假设excel中的一行是: Distribution A+;#253;#Distribution FACTS;#256;#Distribution SX.e;#257 现在我的要求是,我需要像这样拆分它们: ID;#Value;#ID;#Value;#ID;#Value 然后在列表中更新 代码 if (string.IsNullOrEmpty(Convert.ToString(listTable.R
Distribution A+;#253;#Distribution FACTS;#256;#Distribution SX.e;#257
现在我的要求是,我需要像这样拆分它们:
ID;#Value;#ID;#Value;#ID;#Value
然后在列表中更新
代码
if (string.IsNullOrEmpty(Convert.ToString(listTable.Rows[iRow][23]))) {
} else {
newlistitem["Product"] = Convert.ToString(listTable.Rows[iRow][23]);
}
现在我的代码是if(string.IsNullOrEmpty(Convert.ToString(listTable.Rows[iRow][23]){}else{newlistitem[“Product”]=Convert.ToString(listTable.Rows[iRow][23]);}现在我的代码是if(string.IsNullOrEmpty(Convert.ToString(listTable.Rows[iRow][23])){else{newlistitem Product=Convert.ToString(listTable Rows[iRow][23]); }