Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structured reference cell range enhancement for ExcelTable #1643

Open
minren118 opened this issue Oct 21, 2024 · 1 comment
Open

Structured reference cell range enhancement for ExcelTable #1643

minren118 opened this issue Oct 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@minren118
Copy link

minren118 commented Oct 21, 2024

I like using ExcelTable very much, because it can structure the data well, and it will be very easy and semantically clear to reference the data of a specific row or column, but in EPPLUS, compared with the object model interface of VBA, there are still some shortcomings in use, such as I want to reference a column's header area, data area, summary area, etc. There's no easy way to do it. But in VBA, there are direct properties that are easily accessible.

in EPPLUS,need to refer the col data range like below
var colName = excelTable.Columns["col10"].Position;
var colDataRange =excelTable.Range.TakeSingleColumn(colIndex).SkipRows(1);

but in VBA ,just like this

var colDataRange =excelTable.ListColumns("col10").DataRange

https://learn.microsoft.com/en-us/office/vba/api/excel.listcolumn
https://learn.microsoft.com/en-us/office/vba/api/excel.listrow

And Also the Resize method is usefull (Does not affect the relative absolute reference of other cell formulas),Or, similar to LoadFromCollection, automatically extend the row range of ExcelTable, and other cell positions or formula references are automatically changed relative or absolute references.

@JanKallman JanKallman added the enhancement New feature or request label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@JanKallman @minren118 and others