简体   繁体   English

如何使用ole db C#从Excel工作表中选择特定的合并列

[英]How Select specific merge columns from excel sheet using ole db c#

I want to get the red highlight RowColumn. 我想获得红色突出显示的RowColumn。 First column is made of single cell A4 and next is made of merge cells 第一列由单个单元格A4组成,第二列由合并单元格组成
[BCDE4],[FGHI4],[JKLM4],[NOPQ4],[RSTU4],[VWXY4]

 ("select * from ["+sheetname+"$A4:V4]", MyConnection);

Table goes here: 表在这里: 图片

You can't. 你不能 OLEDB will return the underlying cells, so your data is in B4, F4, J4 etc despite how it appears on the screen. OLEDB将返回基础单元,因此您的数据位于B4,F4,J4等位置,无论它如何出现在屏幕上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从c#中的excel表中选择特定列? - How can i select specific columns from excel sheet in c#? 如何从C#中的特定Excel工作表中选择 - How to select from specific Excel sheet in C# 如何在查询C#的Excel工作表中选择一组行和列? - How can I select a set of rows and columns from an excel sheet in query for C#? C#OLE DB:如何使用数据集重新排序数据库表的列? - C# OLE DB: How can I reorder columns of database table by using a dataset? 如何使用VS 2010,C#,oledbconnection从excel文件中选择特定单元格(从不同的行或列) - How to select specific cells (from different rows or columns) from an excel file using VS 2010, C#, oledbconnection 如何从C#中的Excel工作表中选择行 - how to select rows from excel sheet in c# 如何从excel复制特定的工作表名称并将其保存到新位置? 使用 C# - How to copy specific sheet name from excel and save it to a new location? Using C# 如何使用OLEDB for C#在Excel中执行“从[sheet1 $]其中列为L的*中选择*”? - How can I do this “select * from [sheet1$] where column is L” in Excel using OLEDB for C#? 如何使用 C# 在 Excel 上定位特定工作表 - How to positioning specific sheet on Excel with C# 使用C#从Excel文件中选择列 - Select columns from excel file by using C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM