Sort an excel

txantxagorritxantxagorri Member Posts: 23
Hello,
How can I sort an excel which I export from Nav with Automations?
Thanks!

Comments

  • tinoruijstinoruijs Member Posts: 1,226
    Hi,

    You could take a look at the following post (I found it by searching the forum :wink: ):
    http://www.mibuso.com/forum/viewtopic.php?t=18606&highlight=excel+sort

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • awarnawarn Member Posts: 261
    Um, wouldn't it make sense to sort the data before exporting it?

    You could always use a tempoarary table to sort it however you want, then export the temp table, really it shouldn't be more than 10 lines of code...

    -a
  • txantxagorritxantxagorri Member Posts: 23
    why doesn´t apply the sorting to the specified range, it takes also the first line
    xlWorkSheet.Range('A2:O600').Sort(xlWorkSheet.Range('I2'));
Sign In or Register to comment.