Merge pull request #13 from schebotar/dev

Filtering quickfix
This commit is contained in:
Serghei Cebotari 2022-01-28 18:49:51 +03:00 committed by GitHub
commit 62cfb27784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}