Excel automation - Filter AutoFilter

fmhiguefmhigue Member Posts: 290
Hi there:

Got a question. Have anyone of you created a function to use Filter - Auto Filter on an excel spreadsheet?

Thank you in advance

Comments

  • BeliasBelias Member Posts: 2,998
    Try to register a macro in excel, active the filters and then edit the macro...
    you will discorver that the instruction is "selection.Autofilter"....try to reproduce it in NAV...
    you can do this trick for nearly everything you can do in excel
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • DaveTDaveT Member Posts: 1,039
    If you look at the globals on table 370 Excel buffer you will see different automations declared. The worksheet has a property for auto filtering.


    [BOOL AutoFilterMode :=] XlWrkSht.AutoFilterMode([BOOL AutoFilterMode])

    haven't tried it but looks like what you need.
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
Sign In or Register to comment.