From 0fac439d951ab1162ad3e6779819814172d3b65d Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Fri, 28 Jan 2022 18:46:31 +0300 Subject: [PATCH] Filtering quickfix --- src/PriceListTools/PriceListTool.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PriceListTools/PriceListTool.cs b/src/PriceListTools/PriceListTool.cs index 9d898e7..f6231a5 100644 --- a/src/PriceListTools/PriceListTool.cs +++ b/src/PriceListTools/PriceListTool.cs @@ -187,8 +187,9 @@ namespace RehauSku.PriceListTools protected private void FilterByAmount() { 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(); } }