web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Save filter on the planning worksheet

(0) ShareShare
ReportReport
Posted on by 40

Hi BC community,

On many pages, it is possible to save the filter settings, but it seems not possible on the planning Worksheet. 

This functionnality would really ease everyday work, especially when several persons are using the planning Worksheet page.

Does anyone know if I can add this functionnality? or if is is planned in a future release?

Thanks in advance

Jérôme

I have the same question (0)
  • divyeshchitte Profile Picture
    968 on at

    Try using Filter tokens.

    divyeshchittenavbc.wordpress.com/.../

  • JeromeD Profile Picture
    40 on at

    Thanks for the support. 

    Unfortunately, I don't have a developper profile.

    Best regards

    Jerome

  • Community Member Profile Picture
    on at

    Have a look at Capture Autofilter state

    To prevent link rot, here is the code (credit to original author):

    Works with Excel 2010, just delete the commented line marked.

    Sub ReDoAutoFilter()

       Dim w As Worksheet

       Dim filterArray()

       Dim currentFiltRange As String

       Dim col As Integer

       Set w = ActiveSheet

       ' Capture AutoFilter settings

       With w.AutoFilter

           currentFiltRange = .Range.Address

           With .Filters

               ReDim filterArray(1 To .Count, 1 To 3)

               For f = 1 To .Count

                   With .Item(f)

                       If .On Then

                           filterArray(f, 1) = .Criteria1

                           If .Operator Then

                               filterArray(f, 2) = .Operator

                               filterArray(f, 3) = .Criteria2 'simply delete this line to make it work in Excel 2010

                           End If

                       End If

                   End With

               Next f

           End With

       End With

       'Remove AutoFilter

       w.AutoFilterMode = False

       ' Your code here

       ' Restore Filter settings

       For col = 1 To UBound(filterArray(), 1)

           If Not IsEmpty(filterArray(col, 1)) Then

               If filterArray(col, 2) Then

                   w.Range(currentFiltRange).AutoFilter field:=col, _

                   Criteria1:=filterArray(col, 1), _

                   Operator:=filterArray(col, 2), _

                   Criteria2:=filterArray(col, 3)

               Else

                   w.Range(currentFiltRange).AutoFilter field:=col, _

                   Criteria1:=filterArray(col, 1)

               End If

           End If

       Next col

    End Sub

  • JeromeD Profile Picture
    40 on at

    Thank you.
    Unfortunately, I don't have the license to code Business Central.

  • Verified answer
    Marco Mels Profile Picture
    on at

    Hello,

    You may want to ask your CSP or Dynamics partner to do this for you. Or raise this issue as an idea on https://aka.ms/bcideas . Most likely this has already been done by others, so you need to vote for the ideas.

    Thanks.

  • JeromeD Profile Picture
    40 on at

    Thank you Marco. I will look at this webite.

    Best regards

    Jerome

  • Verified answer
    Marco Mels Profile Picture
    on at

    Welcome. Apart from that, you should ask your partner for an update to build an extension for you.

  • JeromeD Profile Picture
    40 on at

    Cooperation with ou partner is not as I would expect, unfortunately.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans