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

  • JeromeD Profile Picture
    40 on at
    RE: Save filter on the planning worksheet

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

  • Verified answer
    Marco Mels Profile Picture
    on at
    RE: Save filter on the planning worksheet

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

  • JeromeD Profile Picture
    40 on at
    RE: Save filter on the planning worksheet

    Thank you Marco. I will look at this webite.

    Best regards

    Jerome

  • Verified answer
    Marco Mels Profile Picture
    on at
    RE: Save filter on the planning worksheet

    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
    RE: Save filter on the planning worksheet

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

  • Community Member Profile Picture
    on at
    RE: Save filter on the planning worksheet

    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
    RE: Save filter on the planning worksheet

    Thanks for the support. 

    Unfortunately, I don't have a developper profile.

    Best regards

    Jerome

  • divyeshchitte Profile Picture
    950 on at
    RE: Save filter on the planning worksheet

    Try using Filter tokens.

    divyeshchittenavbc.wordpress.com/.../

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
YUN ZHU Profile Picture

YUN ZHU 374 Super User 2025 Season 1

#2
Mansi Soni Profile Picture

Mansi Soni 247

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 231 Most Valuable Professional

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans