Filtering quickfix

This commit is contained in:
Sergey Chebotar 2022-01-28 18:46:31 +03:00
parent 2ad016bb4c
commit 0fac439d95

View File

@ -187,8 +187,9 @@ namespace RehauSku.PriceListTools
protected private void FilterByAmount() protected private void FilterByAmount()
{ {
AutoFilter filter = TargetFile.Sheet.AutoFilter; AutoFilter filter = TargetFile.Sheet.AutoFilter;
int startColumn = filter.Range.Column;
filter.Range.AutoFilter(TargetFile.amountCell.Column, "<>"); filter.Range.AutoFilter(TargetFile.amountCell.Column - startColumn + 1, "<>");
TargetFile.Sheet.Range["A1"].Activate(); TargetFile.Sheet.Range["A1"].Activate();
} }
} }