mdamazon has asked for the wisdom of the Perl Monks concerning the following question:
$Sheet->Range("a$filter_row:z$filter_row")->AutoFilter;
Now I would like to sort on the fifth column (column "E") descending. I created a macro in Excel that did just that, but am unable to figure out how to translate it into Perl. The macro looks like this:
Any suggestions would be appreciated!ActiveWorkbook.Worksheets("A").AutoFilter.Sort.SortFields.Clear ActiveWorkbook.Worksheets("A").AutoFilter.Sort.SortFields.Add Key: +=Range _ ("E29"), SortOn:=xlSortOnValues, Order:=xlDescending, DataOpti +on:= _ xlSortNormal With ActiveWorkbook.Worksheets("A").AutoFilter.Sort .Header = xlYes .MatchCase = False .Orientation = xlTopToBottom .SortMethod = xlPinYin .Apply End With
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE and Excel Autofilter
by Corion (Patriarch) on Nov 09, 2015 at 20:26 UTC | |
by mdamazon (Acolyte) on Nov 09, 2015 at 22:14 UTC |